public final class Domain
extends java.lang.Object
Configuration to be used by all Archives created by this Domain's
ArchiveFactory. New domains are created via ShrinkWrap.createDomain() (for a default configuration
isolated from the ShrinkWrap.getDefaultDomain()), or ShrinkWrap.createDomain(Configuration) and
ShrinkWrap.createDomain(ConfigurationBuilder) (to supply an explicit configuration property set).| Modifier and Type | Field and Description |
|---|---|
private ArchiveFactory |
archiveFactory
Factory for creating archives within this
Domain |
private Configuration |
configuration
Configuration for this Domain
|
| Constructor and Description |
|---|
Domain(Configuration configuration)
Creates a new instance backed by the supplied
Configuration |
| Modifier and Type | Method and Description |
|---|---|
ArchiveFactory |
getArchiveFactory()
Obtains the
ArchiveFactory for this domain. |
Configuration |
getConfiguration()
Obtains the
Configuration associated with this Domain |
private final Configuration configuration
private final ArchiveFactory archiveFactory
DomainDomain(Configuration configuration) throws java.lang.IllegalArgumentException
Configurationconfiguration - backing the new instancejava.lang.IllegalArgumentException - If the configuration is not suppliedpublic Configuration getConfiguration()
Configuration associated with this Domainpublic ArchiveFactory getArchiveFactory()
ArchiveFactory for this domain. All Archives created from the factory will be backed
by this domain's configuration.