Class Configuration
java.lang.Object
org.jboss.shrinkwrap.api.Configuration
Encapsulates all configuration for a given
Domain. Each Archive created by the domain's
ArchiveFactory will consult the configuration internally. An Archive'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 by ConfigurationBuilder, and new configurations are created via
ConfigurationBuilder.build(). Note that while the Configuration is immutable, its properties may have
internal state that may be changed. For true isolation, use separate Domains when creating Archives.- Version:
- $Revision: $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Iterable<ClassLoader> ClassLoaders used for extension loadingprivate final ExecutorServiceDeprecated.No longer used by the implementation, will be removed in SW 2.0private final ExtensionLoaderLoader mapping archive types to the appropriate underlying implementation -
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(ConfigurationBuilder builder) Creates a new configuration instance using properties contained in the specifiedConfigurationBuilder. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.No longer used by the implementation, will be removed in SW 2.0
-
Field Details
-
extensionLoader
Loader mapping archive types to the appropriate underlying implementation -
executorService
Deprecated.No longer used by the implementation, will be removed in SW 2.0ExecutorServiceused for all asynchronous operations -
classLoaders
ClassLoaders used for extension loading
-
-
Constructor Details
-
Configuration
Configuration(ConfigurationBuilder builder) throws 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:
IllegalArgumentException- If the builder was not specified
-
-
Method Details
-
getExtensionLoader
- Returns:
- the extensionLoader
-
getExecutorService
Deprecated.No longer used by the implementation, will be removed in SW 2.0- Returns:
- the executorService
-
getClassLoaders
- Returns:
- The
ClassLoaders to be used in this configuration; used in extension loading and adding CL resources to the archive, etc
-