|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.component.BeanAttributesImpl<T>
org.apache.webbeans.component.AbstractOwbBean<T>
org.apache.webbeans.component.InjectionTargetBean<T>
org.apache.webbeans.ejb.common.component.BaseEjbBean<T>
public abstract class BaseEjbBean<T>
Defines bean contract for the session beans.
| Field Summary | |
|---|---|
protected SessionBeanType |
ejbType
Session bean type |
static Object[] |
OBJECT_EMPTY
|
| Fields inherited from class org.apache.webbeans.component.AbstractOwbBean |
|---|
enabled, logger, passivatingId, specializedBean, webBeansContext, webBeansType |
| Constructor Summary | |
|---|---|
protected |
BaseEjbBean(WebBeansContext webBeansContext,
SessionBeanType type,
AnnotatedType<T> annotatedType,
BeanAttributes<T> beanAttributes,
Class<T> beanClass,
InjectionTargetFactoryImpl<T> factory)
Creates a new instance of the session bean. |
protected |
BaseEjbBean(WebBeansContext webBeansContext,
SessionBeanType type,
AnnotatedType<T> annotatedType,
BeanAttributesImpl<T> beanAttributes,
Class<T> beanClass)
|
| Method Summary | |
|---|---|
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 |
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 |
| Methods inherited from class org.apache.webbeans.component.InjectionTargetBean |
|---|
getAnnotatedType, getInjectionTarget, getProducer |
| Methods inherited from class org.apache.webbeans.component.AbstractOwbBean |
|---|
create, destroy, getBeanClass, getId, getInjectionPoints, getLogger, getReturnType, getWebBeansContext, getWebBeansType, isAlternative, isDependent, isEnabled, isSpecializedBean, setEnabled, setSpecializedBean, toString |
| Methods inherited from class org.apache.webbeans.component.BeanAttributesImpl |
|---|
getName, getQualifiers, getScope, getStereotypes, getTypes, isNullable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.enterprise.inject.spi.Bean |
|---|
getName, getQualifiers, getScope, getStereotypes, getTypes, isNullable |
| Field Detail |
|---|
public static final Object[] OBJECT_EMPTY
protected final SessionBeanType ejbType
| Constructor Detail |
|---|
protected BaseEjbBean(WebBeansContext webBeansContext,
SessionBeanType type,
AnnotatedType<T> annotatedType,
BeanAttributes<T> beanAttributes,
Class<T> beanClass,
InjectionTargetFactoryImpl<T> factory)
webBeansContext -
protected BaseEjbBean(WebBeansContext webBeansContext,
SessionBeanType type,
AnnotatedType<T> annotatedType,
BeanAttributesImpl<T> beanAttributes,
Class<T> beanClass)
| Method Detail |
|---|
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 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 proxy
public boolean needsBeanLocalViewAddedToTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||