org.apache.openejb.cdi
Class BeansDeployer

java.lang.Object
  extended by org.apache.openejb.cdi.BeansDeployer

public class BeansDeployer
extends Object

Deploys the all beans that are defined in the ScannerService at the scanner phase.


Field Summary
protected  org.apache.webbeans.xml.WebBeansXMLConfigurator xmlConfigurator
          XML Configurator
 
Constructor Summary
BeansDeployer(org.apache.webbeans.xml.WebBeansXMLConfigurator xmlConfigurator, org.apache.webbeans.config.WebBeansContext webBeansContext)
           
 
Method Summary
protected  void addDefaultStereoTypes()
          Adds default stereotypes.
protected  void checkPassivationScope(javax.enterprise.inject.spi.Bean<?> beanObj)
          Check passivations.
protected  void checkSpecializations(org.apache.webbeans.spi.ScannerService scanner)
          Checks specialization.
protected  void checkStereoTypes(org.apache.webbeans.spi.ScannerService scanner)
          Check steretypes.
protected
<T> boolean
defineManagedBean(Class<T> clazz, org.apache.webbeans.portable.events.ProcessAnnotatedTypeImpl<T> processAnnotatedEvent)
          Defines and configures managed bean.
protected  void deployFromXML(org.apache.webbeans.spi.ScannerService scanner)
          Discovers and deploys classes from XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlConfigurator

protected final org.apache.webbeans.xml.WebBeansXMLConfigurator xmlConfigurator
XML Configurator

Constructor Detail

BeansDeployer

public BeansDeployer(org.apache.webbeans.xml.WebBeansXMLConfigurator xmlConfigurator,
                     org.apache.webbeans.config.WebBeansContext webBeansContext)
Method Detail

deployFromXML

protected void deployFromXML(org.apache.webbeans.spi.ScannerService scanner)
                      throws org.apache.webbeans.exception.WebBeansDeploymentException
Discovers and deploys classes from XML. NOTE : Currently XML file is just used for configuring.

Parameters:
scanner - discovery scanner
Throws:
org.apache.webbeans.exception.WebBeansDeploymentException - if exception

checkSpecializations

protected void checkSpecializations(org.apache.webbeans.spi.ScannerService scanner)
Checks specialization.

Parameters:
scanner - scanner instance

checkPassivationScope

protected void checkPassivationScope(javax.enterprise.inject.spi.Bean<?> beanObj)
Check passivations.


checkStereoTypes

protected void checkStereoTypes(org.apache.webbeans.spi.ScannerService scanner)
Check steretypes.

Parameters:
scanner - scanner instance

addDefaultStereoTypes

protected void addDefaultStereoTypes()
Adds default stereotypes.


defineManagedBean

protected <T> boolean defineManagedBean(Class<T> clazz,
                                        org.apache.webbeans.portable.events.ProcessAnnotatedTypeImpl<T> processAnnotatedEvent)
Defines and configures managed bean.

Type Parameters:
T - type info
Parameters:
clazz - bean class
Returns:
true if given class is configured as a managed bean


Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.