@Module public class BeansConfig extends java.lang.Object implements EnvironmentBean
Modifier and Type | Class and Description |
---|---|
class |
BeansConfig.AlternativesConfig |
class |
BeansConfig.Decorators |
class |
BeansConfig.DeployConfig |
class |
BeansConfig.Interceptors |
Constructor and Description |
---|
BeansConfig(InjectManager injectManager,
Path root) |
Modifier and Type | Method and Description |
---|---|
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() |
public BeansConfig(InjectManager injectManager, Path root)
public void setSchemaLocation(java.lang.String schema)
public InjectManager getContainer()
public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface EnvironmentBean
public Path getRoot()
public void addScannedClass(java.lang.Class<?> cl)
public boolean isConfigured()
public void setConfigured(boolean isConfigured)
public java.util.ArrayList<java.lang.Class<?>> getAlternativesList()
public void addCustomBean(XmlBeanConfig<?> bean)
@TagName(value="Deploy") public BeansConfig.DeployConfig createDeploy()
public BeansConfig.AlternativesConfig createAlternatives()
public BeansConfig.Interceptors createInterceptors()
public BeansConfig.Decorators createDecorators()
@PostConstruct public void init()
public void update()
public <T> void addInterceptor(java.lang.Class<T> cl)
public java.lang.String toString()
toString
in class java.lang.Object