public class BeansDeployer extends Object
ScannerService at
the scanner phase.| Modifier and Type | Class and Description |
|---|---|
static class |
BeansDeployer.ExtendedBeanAttributes<T> |
| Modifier and Type | Field and Description |
|---|---|
protected BeanArchiveService |
beanArchiveService
XML Configurator
|
protected boolean |
deployed
Deployment is started or not
|
protected boolean |
discoverEjb
Discover ejb or not
|
static String |
JAVAX_ENTERPRISE_PACKAGE |
protected boolean |
skipVetoedOnPackages |
| Constructor and Description |
|---|
BeansDeployer(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(Map<BeanArchiveService.BeanArchiveInformation,Map<javax.enterprise.inject.spi.AnnotatedType<?>,BeansDeployer.ExtendedBeanAttributes<?>>> beanAttributesPerBda)
Check steretypes.
|
void |
configureProducerMethodSpecializations()
Configure direct/indirect specialized producer method beans.
|
protected <T> void |
defineEnterpriseWebBean(Class<T> clazz,
javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
javax.enterprise.inject.spi.BeanAttributes<T> attributes)
Defines enterprise bean via plugin.
|
protected <T> void |
defineManagedBean(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
BeansDeployer.ExtendedBeanAttributes extendedBeanAttributes,
Map<javax.enterprise.inject.spi.AnnotatedType<?>,BeansDeployer.ExtendedBeanAttributes<?>> annotatedTypes)
Defines and configures managed bean.
|
void |
deploy(ScannerService scanner)
Deploys all the defined web beans components in the container startup.
|
protected void |
deployFromBeanAttributes(Map<BeanArchiveService.BeanArchiveInformation,Map<javax.enterprise.inject.spi.AnnotatedType<?>,BeansDeployer.ExtendedBeanAttributes<?>>> beanAttributesPerBda)
Discovers and deploys classes from class path.
|
protected void |
deployFromXML(ScannerService scanner)
Discovers and deploys alternatives, interceptors and decorators from XML.
|
public static final String JAVAX_ENTERPRISE_PACKAGE
protected boolean deployed
protected BeanArchiveService beanArchiveService
protected boolean discoverEjb
protected boolean skipVetoedOnPackages
public BeansDeployer(WebBeansContext webBeansContext)
webBeansContext - 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 occurspublic void configureProducerMethodSpecializations()
protected void deployFromBeanAttributes(Map<BeanArchiveService.BeanArchiveInformation,Map<javax.enterprise.inject.spi.AnnotatedType<?>,BeansDeployer.ExtendedBeanAttributes<?>>> beanAttributesPerBda)
beanAttributesPerBda - the AnnotatedTypes which got discovered so far and are not vetoedClassNotFoundException - if class not foundprotected void deployFromXML(ScannerService scanner) throws WebBeansDeploymentException
scanner - discovery scannerWebBeansDeploymentException - if a problem occursprotected void checkPassivationScope(javax.enterprise.inject.spi.Bean<?> beanObj)
protected void checkStereoTypes(Map<BeanArchiveService.BeanArchiveInformation,Map<javax.enterprise.inject.spi.AnnotatedType<?>,BeansDeployer.ExtendedBeanAttributes<?>>> beanAttributesPerBda)
protected void addDefaultStereoTypes()
protected <T> void defineManagedBean(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
BeansDeployer.ExtendedBeanAttributes extendedBeanAttributes,
Map<javax.enterprise.inject.spi.AnnotatedType<?>,BeansDeployer.ExtendedBeanAttributes<?>> annotatedTypes)
protected <T> void defineEnterpriseWebBean(Class<T> clazz, javax.enterprise.inject.spi.AnnotatedType<T> annotatedType, javax.enterprise.inject.spi.BeanAttributes<T> attributes)
T - bean class typeclazz - bean classCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.