org.jboss.shrinkwrap.api
Class Configuration

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

public class Configuration
extends Object

Encapsulates all configuration for a given Domain. Each Archive created by the domain's ArchiveFactory will consult the configuration internally. An Archive's configuration may not be changed after construction; if a new config is required it must be created under a new domain. The default configuration is defined by ConfigurationBuilder, and new configurations are created via ConfigurationBuilder.build(). Note that while the Configuration is immutable, its properties may have internal state that may be changed. For true isolation, use separate Domains when creating Archives.

Version:
$Revision: $
Author:
ALR, Ken Gullaksen

Method Summary
 Iterable<ClassLoader> getClassLoaders()
           
 ExecutorService getExecutorService()
           
 ExtensionLoader getExtensionLoader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getExtensionLoader

public ExtensionLoader getExtensionLoader()
Returns:
the extensionLoader

getExecutorService

public ExecutorService getExecutorService()
Returns:
the executorService

getClassLoaders

public Iterable<ClassLoader> getClassLoaders()
Returns:
The ClassLoaders to be used in this configuration; used in extension loading and adding CL resources to the archive, etc


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