Package org.jboss.shrinkwrap.api
Class Domain
java.lang.Object
org.jboss.shrinkwrap.api.Domain
Encapsulates a shared
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).- Version:
- $Revision: $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArchiveFactory
Factory for creating archives within thisDomain
private final Configuration
Configuration for this Domain -
Constructor Summary
ConstructorsConstructorDescriptionDomain
(Configuration configuration) Creates a new instance backed by the suppliedConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionObtains theArchiveFactory
for this domain.Obtains theConfiguration
associated with thisDomain
-
Field Details
-
configuration
Configuration for this Domain -
archiveFactory
Factory for creating archives within thisDomain
-
-
Constructor Details
-
Domain
Domain(Configuration configuration) throws IllegalArgumentException Creates a new instance backed by the suppliedConfiguration
- Parameters:
configuration
- backing the new instance- Throws:
IllegalArgumentException
- If the configuration is not supplied
-
-
Method Details
-
getConfiguration
Obtains theConfiguration
associated with thisDomain
- Returns:
- the configuration
-
getArchiveFactory
Obtains theArchiveFactory
for this domain. AllArchive
s created from the factory will be backed by this domain's configuration.- Returns:
- the archiveFactory
-