|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.config.BeansDeployer
public class BeansDeployer
Deploys the all beans that are defined in the ScannerService at
the scanner phase.
| Field Summary | |
|---|---|
protected boolean |
deployed
Deployment is started or not |
protected boolean |
discoverEjb
Discover ejb or not |
protected WebBeansXMLConfigurator |
xmlConfigurator
XML Configurator |
| Constructor Summary | |
|---|---|
BeansDeployer(WebBeansXMLConfigurator xmlConfigurator,
WebBeansContext webBeansContext)
Creates a new deployer with given xml configurator. |
|
| Method Summary | ||
|---|---|---|
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
|
defineEnterpriseWebBean(Class<T> clazz,
javax.enterprise.inject.spi.ProcessAnnotatedType<T> processAnnotatedTypeEvent)
Defines enterprise bean via plugin. |
|
protected
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean deployed
protected WebBeansXMLConfigurator xmlConfigurator
protected boolean discoverEjb
| Constructor Detail |
|---|
public BeansDeployer(WebBeansXMLConfigurator xmlConfigurator,
WebBeansContext webBeansContext)
xmlConfigurator - xml configuratorwebBeansContext - | Method Detail |
|---|
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 occurs
protected void deployFromClassPath(ScannerService scanner)
throws ClassNotFoundException
scanner - discovery scanner
ClassNotFoundException - if class not found
protected void deployFromXML(ScannerService scanner)
throws WebBeansDeploymentException
scanner - discovery scanner
WebBeansDeploymentException - 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 class
protected <T> void defineEnterpriseWebBean(Class<T> clazz,
javax.enterprise.inject.spi.ProcessAnnotatedType<T> processAnnotatedTypeEvent)
T - bean class typeclazz - bean class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||