Package org.jboss.shrinkwrap.api
Class Configuration
- java.lang.Object
-
- org.jboss.shrinkwrap.api.Configuration
-
public class Configuration extends java.lang.Object
Encapsulates all configuration for a givenDomain
. EachArchive
created by the domain'sArchiveFactory
will consult the configuration internally. AnArchive
's configuration may not be changed after construction; if a new config is required it must be created under a new domain. The default configuration is defined byConfigurationBuilder
, and new configurations are created viaConfigurationBuilder.build()
. Note that while theConfiguration
is immutable, its properties may have internal state that may be changed. For true isolation, use separateDomain
s when creatingArchive
s.- Version:
- $Revision: $
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Iterable<java.lang.ClassLoader>
classLoaders
ClassLoader
s used for extension loadingprivate java.util.concurrent.ExecutorService
executorService
Deprecated.No longer used by the implementation, will be removed in SW 2.0private ExtensionLoader
extensionLoader
Loader mapping archive types to the appropriate underlying implementation
-
Constructor Summary
Constructors Constructor Description Configuration(ConfigurationBuilder builder)
Creates a new configuration instance using properties contained in the specifiedConfigurationBuilder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Iterable<java.lang.ClassLoader>
getClassLoaders()
java.util.concurrent.ExecutorService
getExecutorService()
Deprecated.No longer used by the implementation, will be removed in SW 2.0ExtensionLoader
getExtensionLoader()
-
-
-
Field Detail
-
extensionLoader
private final ExtensionLoader extensionLoader
Loader mapping archive types to the appropriate underlying implementation
-
executorService
@Deprecated private final java.util.concurrent.ExecutorService executorService
Deprecated.No longer used by the implementation, will be removed in SW 2.0ExecutorService
used for all asynchronous operations
-
classLoaders
private final java.lang.Iterable<java.lang.ClassLoader> classLoaders
ClassLoader
s used for extension loading
-
-
Constructor Detail
-
Configuration
Configuration(ConfigurationBuilder builder) throws java.lang.IllegalArgumentException
Creates a new configuration instance using properties contained in the specifiedConfigurationBuilder
.- Parameters:
builder
- Construction object encapsulating the properties to use in this configuration- Throws:
java.lang.IllegalArgumentException
- If the builder was not specified
-
-
Method Detail
-
getExtensionLoader
public ExtensionLoader getExtensionLoader()
- Returns:
- the extensionLoader
-
getExecutorService
@Deprecated public java.util.concurrent.ExecutorService getExecutorService()
Deprecated.No longer used by the implementation, will be removed in SW 2.0- Returns:
- the executorService
-
getClassLoaders
public java.lang.Iterable<java.lang.ClassLoader> getClassLoaders()
- Returns:
- The
ClassLoader
s to be used in this configuration; used in extension loading and adding CL resources to the archive, etc
-
-