org.jboss.shrinkwrap.api
Class Domain

java.lang.Object
  extended by org.jboss.shrinkwrap.api.Domain

public final class Domain
extends Object

Encapsulates a shared Configuration to be used by all Archives 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: $
Author:
ALR

Method Summary
 ArchiveFactory getArchiveFactory()
          Obtains the ArchiveFactory for this domain.
 Configuration getConfiguration()
          Obtains the Configuration associated with this Domain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConfiguration

public Configuration getConfiguration()
Obtains the Configuration associated with this Domain

Returns:
the configuration

getArchiveFactory

public ArchiveFactory getArchiveFactory()
Obtains the ArchiveFactory for this domain. All Archives created from the factory will be backed by this domain's configuration.

Returns:
the archiveFactory


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.