public final class Domain
extends java.lang.Object
Configuration
to be used by all Archive
s 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
Domain
Domain(Configuration configuration) throws java.lang.IllegalArgumentException
Configuration
configuration
- backing the new instancejava.lang.IllegalArgumentException
- If the configuration is not suppliedpublic Configuration getConfiguration()
Configuration
associated with this Domain
public ArchiveFactory getArchiveFactory()
ArchiveFactory
for this domain. All Archive
s created from the factory will be backed
by this domain's configuration.