com.caucho.config.cfg
Class BeansConfig

java.lang.Object
  extended by com.caucho.config.cfg.BeansConfig
All Implemented Interfaces:
EnvironmentBean

@Module
public class BeansConfig
extends java.lang.Object
implements EnvironmentBean

Configuration for a classloader root containing webbeans


Nested Class Summary
 class BeansConfig.AlternativesConfig
           
 class BeansConfig.Decorators
           
 class BeansConfig.DeployConfig
           
 class BeansConfig.Interceptors
           
 
Constructor Summary
BeansConfig(InjectManager injectManager, Path root)
           
 
Method Summary
 void addCustomBean(XmlBeanConfig<?> bean)
          Adds a namespace bean
<T> void
addInterceptor(java.lang.Class<T> cl)
           
 void addScannedClass(java.lang.Class<?> cl)
          Adds a scanned class
 BeansConfig.AlternativesConfig createAlternatives()
          Adds a deploy
 BeansConfig.Decorators createDecorators()
          Adds the decorators
 BeansConfig.DeployConfig createDeploy()
          Adds a deploy
 BeansConfig.Interceptors createInterceptors()
          Adds the interceptors
 java.util.ArrayList<java.lang.Class<?>> getAlternativesList()
           
 java.lang.ClassLoader getClassLoader()
          Returns the owning classloader.
 InjectManager getContainer()
          returns the owning container.
 Path getRoot()
          Gets the web beans root directory
 void init()
          Initialization and validation on parse completion.
 boolean isConfigured()
          True if the configuration file has been passed.
 void setConfigured(boolean isConfigured)
          True if the configuration file has been passed.
 void setSchemaLocation(java.lang.String schema)
           
 java.lang.String toString()
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeansConfig

public BeansConfig(InjectManager injectManager,
                   Path root)
Method Detail

setSchemaLocation

public void setSchemaLocation(java.lang.String schema)

getContainer

public InjectManager getContainer()
returns the owning container.


getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns the owning classloader.

Specified by:
getClassLoader in interface EnvironmentBean

getRoot

public Path getRoot()
Gets the web beans root directory


addScannedClass

public void addScannedClass(java.lang.Class<?> cl)
Adds a scanned class


isConfigured

public boolean isConfigured()
True if the configuration file has been passed.


setConfigured

public void setConfigured(boolean isConfigured)
True if the configuration file has been passed.


getAlternativesList

public java.util.ArrayList<java.lang.Class<?>> getAlternativesList()

addCustomBean

public void addCustomBean(XmlBeanConfig<?> bean)
Adds a namespace bean


createDeploy

@TagName(value="Deploy")
public BeansConfig.DeployConfig createDeploy()
Adds a deploy


createAlternatives

public BeansConfig.AlternativesConfig createAlternatives()
Adds a deploy


createInterceptors

public BeansConfig.Interceptors createInterceptors()
Adds the interceptors


createDecorators

public BeansConfig.Decorators createDecorators()
Adds the decorators


init

@PostConstruct
public void init()
Initialization and validation on parse completion.


update

public void update()

addInterceptor

public <T> void addInterceptor(java.lang.Class<T> cl)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object