Package org.jboss.shrinkwrap.api
Class Domain
- java.lang.Object
-
- org.jboss.shrinkwrap.api.Domain
-
public final class Domain extends java.lang.Object
Encapsulates a sharedConfiguration
to be used by allArchive
s created by thisDomain
'sArchiveFactory
. New domains are created viaShrinkWrap.createDomain()
(for a default configuration isolated from theShrinkWrap.getDefaultDomain()
), orShrinkWrap.createDomain(Configuration)
andShrinkWrap.createDomain(ConfigurationBuilder)
(to supply an explicit configuration property set).- Version:
- $Revision: $
-
-
Field Summary
Fields Modifier and Type Field Description private ArchiveFactory
archiveFactory
Factory for creating archives within thisDomain
private Configuration
configuration
Configuration for this Domain
-
Constructor Summary
Constructors Constructor Description Domain(Configuration configuration)
Creates a new instance backed by the suppliedConfiguration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArchiveFactory
getArchiveFactory()
Obtains theArchiveFactory
for this domain.Configuration
getConfiguration()
Obtains theConfiguration
associated with thisDomain
-
-
-
Field Detail
-
configuration
private final Configuration configuration
Configuration for this Domain
-
archiveFactory
private final ArchiveFactory archiveFactory
Factory for creating archives within thisDomain
-
-
Constructor Detail
-
Domain
Domain(Configuration configuration) throws java.lang.IllegalArgumentException
Creates a new instance backed by the suppliedConfiguration
- Parameters:
configuration
- backing the new instance- Throws:
java.lang.IllegalArgumentException
- If the configuration is not supplied
-
-
Method Detail
-
getConfiguration
public Configuration getConfiguration()
Obtains theConfiguration
associated with thisDomain
- Returns:
- the configuration
-
getArchiveFactory
public ArchiveFactory getArchiveFactory()
Obtains theArchiveFactory
for this domain. AllArchive
s created from the factory will be backed by this domain's configuration.- Returns:
- the archiveFactory
-
-