public abstract class BaseEjbBean<T> extends InjectionTargetBean<T> implements EnterpriseBeanMarker
| Modifier and Type | Field and Description |
|---|---|
protected javax.enterprise.inject.spi.SessionBeanType |
ejbType
Session bean type
|
static Object[] |
OBJECT_EMPTY |
enabled, logger, passivatingId, specializedBean, webBeansContext, webBeansType| Modifier | Constructor and Description |
|---|---|
protected |
BaseEjbBean(WebBeansContext webBeansContext,
javax.enterprise.inject.spi.SessionBeanType type,
javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
BeanAttributes<T> beanAttributes,
Class<T> beanClass,
InjectionTargetFactoryImpl<T> factory)
Creates a new instance of the session bean.
|
protected |
BaseEjbBean(WebBeansContext webBeansContext,
javax.enterprise.inject.spi.SessionBeanType type,
javax.enterprise.inject.spi.AnnotatedType<T> annotatedType,
BeanAttributesImpl<T> beanAttributes,
Class<T> beanClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependentSFSB(Object dependentSFSB,
Object proxy)
Keep track of which proxies have gotten EJB objects out of a context
|
protected void |
destroyStatefulSessionBeanInstance(T proxyInstance,
Object ejbInstance)
Called when we must ask the container to remove a specific
|
List<Class<?>> |
getBusinessLocalInterfaces()
Subclasses must override this to return local interfaces.
|
Object |
getDependentSFSBForProxy(Object proxy) |
String |
getEjbName()
Subclasses must override this to return ejb name
|
javax.enterprise.inject.spi.SessionBeanType |
getEjbType()
Gets ejb session type.
|
List<Method> |
getRemoveMethods()
Subclasses can override this.
|
boolean |
isPassivationCapable() |
boolean |
needsBeanLocalViewAddedToTypes() |
void |
removeDependentSFSB(Object proxy)
Call after observing an @Remove method on an EJB instance
|
getAnnotatedType, getInjectionTarget, getProducercreate, destroy, getBeanClass, getId, getInjectionPoints, getLogger, getReturnType, getWebBeansContext, getWebBeansType, isAlternative, isDependent, isEnabled, isSpecializedBean, setEnabled, setSpecializedBean, toStringgetName, getQualifiers, getScope, getStereotypes, getTypes, isNullablepublic static final Object[] OBJECT_EMPTY
protected final javax.enterprise.inject.spi.SessionBeanType ejbType
protected BaseEjbBean(WebBeansContext webBeansContext, javax.enterprise.inject.spi.SessionBeanType type, javax.enterprise.inject.spi.AnnotatedType<T> annotatedType, BeanAttributes<T> beanAttributes, Class<T> beanClass, InjectionTargetFactoryImpl<T> factory)
webBeansContext - protected BaseEjbBean(WebBeansContext webBeansContext, javax.enterprise.inject.spi.SessionBeanType type, javax.enterprise.inject.spi.AnnotatedType<T> annotatedType, BeanAttributesImpl<T> beanAttributes, Class<T> beanClass)
public boolean isPassivationCapable()
isPassivationCapable in interface EnterpriseBeanMarkerisPassivationCapable in interface OwbBean<T>isPassivationCapable in class AbstractOwbBean<T>protected void destroyStatefulSessionBeanInstance(T proxyInstance, Object ejbInstance)
proxyInstance - The contextual referenceejbInstance - The underlying EJB instance to be removedpublic List<Method> getRemoveMethods()
public List<Class<?>> getBusinessLocalInterfaces()
public String getEjbName()
public javax.enterprise.inject.spi.SessionBeanType getEjbType()
public void addDependentSFSB(Object dependentSFSB, Object proxy)
dependentSFSB - The dependent SFSB acquired from the EJB containerproxy - The OWB proxy instance whose method handler acquired the dependnet SFSBpublic void removeDependentSFSB(Object proxy)
proxy - the proxy instance the dependent SFSB is associated withpublic Object getDependentSFSBForProxy(Object proxy)
proxy - an instance of our own proxypublic boolean needsBeanLocalViewAddedToTypes()
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.