Package org.jboss.shrinkwrap.api
Class Domain
- java.lang.Object
-
- org.jboss.shrinkwrap.api.Domain
-
public final class Domain extends Object
Encapsulates 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: $
- Author:
- ALR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArchiveFactorygetArchiveFactory()Obtains theArchiveFactoryfor this domain.ConfigurationgetConfiguration()Obtains theConfigurationassociated with thisDomain
-
-
-
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
-
-