Package org.jboss.shrinkwrap.api
Class Domain
- java.lang.Object
-
- org.jboss.shrinkwrap.api.Domain
-
public final class Domain extends java.lang.ObjectEncapsulates a sharedConfigurationto be used by allArchives 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 ArchiveFactoryarchiveFactoryFactory for creating archives within thisDomainprivate ConfigurationconfigurationConfiguration 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 ArchiveFactorygetArchiveFactory()Obtains theArchiveFactoryfor this domain.ConfigurationgetConfiguration()Obtains theConfigurationassociated 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 theConfigurationassociated with thisDomain- Returns:
- the configuration
-
getArchiveFactory
public ArchiveFactory getArchiveFactory()
Obtains theArchiveFactoryfor this domain. AllArchives created from the factory will be backed by this domain's configuration.- Returns:
- the archiveFactory
-
-