public class Configuration
extends java.lang.Object
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 Domain
s when creating Archive
s.Modifier and Type | Field and Description |
---|---|
private java.lang.Iterable<java.lang.ClassLoader> |
classLoaders
ClassLoader s used for extension loading |
private java.util.concurrent.ExecutorService |
executorService
Deprecated.
No longer used by the implementation, will be removed in SW 2.0
|
private ExtensionLoader |
extensionLoader
Loader mapping archive types to the appropriate underlying implementation
|
Constructor and Description |
---|
Configuration(ConfigurationBuilder builder)
Creates a new configuration instance using properties contained in the specified
ConfigurationBuilder . |
Modifier and Type | Method and 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.0
|
ExtensionLoader |
getExtensionLoader() |
private final ExtensionLoader extensionLoader
@Deprecated private final java.util.concurrent.ExecutorService executorService
ExecutorService
used for all asynchronous operationsprivate final java.lang.Iterable<java.lang.ClassLoader> classLoaders
ClassLoader
s used for extension loadingConfiguration(ConfigurationBuilder builder) throws java.lang.IllegalArgumentException
ConfigurationBuilder
.builder
- Construction object encapsulating the properties to use in this configurationjava.lang.IllegalArgumentException
- If the builder was not specifiedpublic ExtensionLoader getExtensionLoader()
@Deprecated public java.util.concurrent.ExecutorService getExecutorService()
public java.lang.Iterable<java.lang.ClassLoader> getClassLoaders()
ClassLoader
s to be used in this configuration; used in extension loading and adding CL
resources to the archive, etc