org.apache.openejb.cdi
Class CdiEjbBean<T>

java.lang.Object
  extended by org.apache.webbeans.component.AbstractOwbBean<T>
      extended by org.apache.webbeans.component.AbstractInjectionTargetBean<T>
          extended by org.apache.webbeans.ejb.common.component.BaseEjbBean<T>
              extended by org.apache.openejb.cdi.CdiEjbBean<T>
All Implemented Interfaces:
javax.enterprise.context.spi.Contextual<T>, javax.enterprise.inject.spi.Bean<T>, org.apache.webbeans.component.EnterpriseBeanMarker, org.apache.webbeans.component.InjectionTargetBean<T>, org.apache.webbeans.component.InterceptedMarker, org.apache.webbeans.component.OwbBean<T>
Direct Known Subclasses:
NewCdiEjbBean, OpenEJBLifecycle.NewEjbBean

public class CdiEjbBean<T>
extends org.apache.webbeans.ejb.common.component.BaseEjbBean<T>


Field Summary
 
Fields inherited from class org.apache.webbeans.ejb.common.component.BaseEjbBean
ejbType, OBJECT_EMPTY
 
Fields inherited from class org.apache.webbeans.component.AbstractInjectionTargetBean
decorators, inheritedMetaData, interceptorStack
 
Fields inherited from class org.apache.webbeans.component.AbstractOwbBean
apiTypes, enabled, implQualifiers, implScopeType, injectionPoints, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansType
 
Constructor Summary
CdiEjbBean(BeanContext beanContext, org.apache.webbeans.config.WebBeansContext webBeansContext)
           
CdiEjbBean(BeanContext beanContext, org.apache.webbeans.config.WebBeansContext webBeansContext, Class beanClass)
           
 
Method Summary
 void addApiType(Class<?> apiType)
           
protected  void afterConstructor(T instance, javax.enterprise.context.spi.CreationalContext<T> tCreationalContext)
           
protected  void destroyComponentInstance(T instance, javax.enterprise.context.spi.CreationalContext<T> creational)
           
protected  void destroyStatefulSessionBeanInstance(T proxyInstance, Object ejbInstance)
           
 BeanContext getBeanContext()
           
 List<Class<?>> getBusinessLocalInterfaces()
           
 String getEjbName()
           
 String getId()
           
 List<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoint(Member member)
           
protected  T getInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
           
 List<Method> getRemoveMethods()
           
 boolean isPassivationCapable()
           
protected  void specialize(CdiEjbBean<?> superBean)
           
 
Methods inherited from class org.apache.webbeans.ejb.common.component.BaseEjbBean
addDependentSFSB, createComponentInstance, getDependentSFSBForProxy, getEjbType, injectFieldInInterceptor, needsBeanLocalViewAddedToTypes, removeDependentSFSB
 
Methods inherited from class org.apache.webbeans.component.AbstractInjectionTargetBean
addInjectedField, addInjectedFieldToSuper, addInjectedMethod, addInjectedMethodToSuper, addObservableMethod, beforeConstructor, createDefaultInstance, createInstance, destroyInstance, getAnnotatedType, getDecoratorStack, getInheritedMetaData, getInjectedFields, getInjectedFromSuperFields, getInjectedFromSuperMethods, getInjectedMethods, getInjectionPoints, getInterceptorStack, getObservableMethods, injectFields, injectMethods, injectResources, injectSuperFields, injectSuperMethods, postConstruct, postConstructDefault, preDestroy, preDestroyDefault, setAnnotatedType, setInheritedMetaData, validatePassivationDependencies
 
Methods inherited from class org.apache.webbeans.component.AbstractOwbBean
addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, equals, getBeanClass, getImplQualifiers, getImplScopeType, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansContext, getWebBeansType, hashCode, isAlternative, isDependent, isEnabled, isNullable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.webbeans.component.OwbBean
addInjectionPoint, addQualifier, addStereoType, createNewInstance, destroyCreatedInstance, getImplQualifiers, getImplScopeType, getOwbStereotypes, getReturnType, getWebBeansContext, getWebBeansType, isDependent, isEnabled, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean
 
Methods inherited from interface javax.enterprise.inject.spi.Bean
getBeanClass, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable
 
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
 

Constructor Detail

CdiEjbBean

public CdiEjbBean(BeanContext beanContext,
                  org.apache.webbeans.config.WebBeansContext webBeansContext)

CdiEjbBean

public CdiEjbBean(BeanContext beanContext,
                  org.apache.webbeans.config.WebBeansContext webBeansContext,
                  Class beanClass)
Method Detail

addApiType

public void addApiType(Class<?> apiType)
Specified by:
addApiType in interface org.apache.webbeans.component.OwbBean<T>
Overrides:
addApiType in class org.apache.webbeans.component.AbstractOwbBean<T>

getBeanContext

public BeanContext getBeanContext()

getId

public String getId()
Specified by:
getId in interface org.apache.webbeans.component.OwbBean<T>
Overrides:
getId in class org.apache.webbeans.component.AbstractOwbBean<T>

getInstance

protected T getInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Specified by:
getInstance in class org.apache.webbeans.ejb.common.component.BaseEjbBean<T>

afterConstructor

protected void afterConstructor(T instance,
                                javax.enterprise.context.spi.CreationalContext<T> tCreationalContext)
Overrides:
afterConstructor in class org.apache.webbeans.component.AbstractInjectionTargetBean<T>

getEjbName

public String getEjbName()
Overrides:
getEjbName in class org.apache.webbeans.ejb.common.component.BaseEjbBean<T>

getBusinessLocalInterfaces

public List<Class<?>> getBusinessLocalInterfaces()
Overrides:
getBusinessLocalInterfaces in class org.apache.webbeans.ejb.common.component.BaseEjbBean<T>

destroyComponentInstance

protected void destroyComponentInstance(T instance,
                                        javax.enterprise.context.spi.CreationalContext<T> creational)
Overrides:
destroyComponentInstance in class org.apache.webbeans.ejb.common.component.BaseEjbBean<T>

destroyStatefulSessionBeanInstance

protected void destroyStatefulSessionBeanInstance(T proxyInstance,
                                                  Object ejbInstance)
Overrides:
destroyStatefulSessionBeanInstance in class org.apache.webbeans.ejb.common.component.BaseEjbBean<T>

getRemoveMethods

public List<Method> getRemoveMethods()
Overrides:
getRemoveMethods in class org.apache.webbeans.ejb.common.component.BaseEjbBean<T>

getInjectionPoint

public List<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoint(Member member)
Specified by:
getInjectionPoint in interface org.apache.webbeans.component.OwbBean<T>
Overrides:
getInjectionPoint in class org.apache.webbeans.component.AbstractOwbBean<T>

specialize

protected void specialize(CdiEjbBean<?> superBean)

isPassivationCapable

public boolean isPassivationCapable()
Specified by:
isPassivationCapable in interface org.apache.webbeans.component.EnterpriseBeanMarker
Specified by:
isPassivationCapable in interface org.apache.webbeans.component.OwbBean<T>
Overrides:
isPassivationCapable in class org.apache.webbeans.ejb.common.component.BaseEjbBean<T>


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