public class BeansDeployer extends Object
ScannerService at
the scanner phase.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
deployed
Deployment is started or not
|
protected boolean |
discoverEjb
Discover ejb or not
|
protected WebBeansXMLConfigurator |
xmlConfigurator
XML Configurator
|
| Constructor and Description |
|---|
BeansDeployer(WebBeansXMLConfigurator xmlConfigurator,
WebBeansContext webBeansContext)
Creates a new deployer with given xml configurator.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDefaultStereoTypes()
Adds default stereotypes.
|
protected void |
checkPassivationScope(javax.enterprise.inject.spi.Bean<?> beanObj)
Check passivations.
|
protected void |
checkSpecializations(ScannerService scanner)
Checks specialization.
|
protected void |
checkStereoTypes(ScannerService scanner)
Check steretypes.
|
protected <T> void |
defineEnterpriseWebBean(Class<T> clazz,
javax.enterprise.inject.spi.ProcessAnnotatedType<T> processAnnotatedTypeEvent)
Defines enterprise bean via plugin.
|
protected <T> boolean |
defineManagedBean(Class<T> clazz,
ProcessAnnotatedTypeImpl<T> processAnnotatedEvent)
Defines and configures managed bean.
|
void |
deploy(ScannerService scanner)
Deploys all the defined web beans components in the container startup.
|
protected void |
deployFromClassPath(ScannerService scanner)
Discovers and deploys classes from class path.
|
protected void |
deployFromXML(ScannerService scanner)
Discovers and deploys alternatives, interceptors and decorators from XML.
|
protected boolean deployed
protected WebBeansXMLConfigurator xmlConfigurator
protected boolean discoverEjb
public BeansDeployer(WebBeansXMLConfigurator xmlConfigurator, WebBeansContext webBeansContext)
xmlConfigurator - xml configuratorwebBeansContext - public void deploy(ScannerService scanner)
It deploys from the web-beans.xml files and from the class files. It uses
the ScannerService to get classes.
WebBeansDeploymentException - if any deployment exception occursprotected void deployFromClassPath(ScannerService scanner) throws ClassNotFoundException
scanner - discovery scannerClassNotFoundException - if class not foundprotected void deployFromXML(ScannerService scanner) throws WebBeansDeploymentException
scanner - discovery scannerWebBeansDeploymentException - if a problem occursprotected void checkSpecializations(ScannerService scanner)
scanner - scanner instanceprotected void checkPassivationScope(javax.enterprise.inject.spi.Bean<?> beanObj)
protected void checkStereoTypes(ScannerService scanner)
scanner - scanner instanceprotected void addDefaultStereoTypes()
protected <T> boolean defineManagedBean(Class<T> clazz, ProcessAnnotatedTypeImpl<T> processAnnotatedEvent)
T - type infoclazz - bean classprotected <T> void defineEnterpriseWebBean(Class<T> clazz, javax.enterprise.inject.spi.ProcessAnnotatedType<T> processAnnotatedTypeEvent)
T - bean class typeclazz - bean classCopyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.