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
|
static String |
JAVAX_ENTERPRISE_PACKAGE |
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 |
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> void |
defineManagedBean(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 void |
processSpecializations(ScannerService scanner)
Checks specialization.
|
protected void |
removeProducersInDisabledBeans() |
public static final String JAVAX_ENTERPRISE_PACKAGE
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 processSpecializations(ScannerService scanner)
scanner
- scanner instanceprotected void removeProducersInDisabledBeans()
protected void checkPassivationScope(javax.enterprise.inject.spi.Bean<?> beanObj)
protected void checkStereoTypes(ScannerService scanner)
scanner
- scanner instanceprotected void addDefaultStereoTypes()
protected <T> void defineManagedBean(ProcessAnnotatedTypeImpl<T> processAnnotatedEvent)
T
- type infoprotected <T> void defineEnterpriseWebBean(Class<T> clazz, javax.enterprise.inject.spi.ProcessAnnotatedType<T> processAnnotatedTypeEvent)
T
- bean class typeclazz
- bean classCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.