|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.component.AbstractOwbBean<T>
org.apache.webbeans.component.AbstractInjectionTargetBean<T>
org.apache.webbeans.ejb.common.component.BaseEjbBean<T>
public abstract class BaseEjbBean<T>
Defines bean contract for the session beans.
| Field Summary | |
|---|---|
protected javax.enterprise.inject.spi.SessionBeanType |
ejbType
Session bean type |
static Object[] |
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 | |
|---|---|
BaseEjbBean(Class<T> ejbClassType,
javax.enterprise.inject.spi.SessionBeanType type,
WebBeansContext webBeansContext)
Creates a new instance of the session bean. |
|
| Method Summary | |
|---|---|
void |
addDependentSFSB(Object dependentSFSB,
Object proxy)
Keep track of which proxies have gotten EJB objects out of a context |
protected T |
createComponentInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
|
protected void |
destroyComponentInstance(T instance,
javax.enterprise.context.spi.CreationalContext<T> creational)
|
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. |
protected abstract T |
getInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
Sublclasses must return instance. |
List<Method> |
getRemoveMethods()
Subclasses can override this. |
void |
injectFieldInInterceptor(Object instance,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Inject session bean injected fields. |
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.AbstractOwbBean |
|---|
addApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, equals, getBeanClass, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, 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 |
|---|
addApiType, addInjectionPoint, addQualifier, addStereoType, createNewInstance, destroyCreatedInstance, getId, getImplQualifiers, getImplScopeType, getInjectionPoint, 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 |
| Field Detail |
|---|
public static final Object[] OBJECT_EMPTY
protected final javax.enterprise.inject.spi.SessionBeanType ejbType
| Constructor Detail |
|---|
public BaseEjbBean(Class<T> ejbClassType,
javax.enterprise.inject.spi.SessionBeanType type,
WebBeansContext webBeansContext)
webBeansContext - ejbClassType - ebj class type| Method Detail |
|---|
public boolean isPassivationCapable()
isPassivationCapable in interface EnterpriseBeanMarkerisPassivationCapable in interface OwbBean<T>isPassivationCapable in class AbstractOwbBean<T>
public void injectFieldInInterceptor(Object instance,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
instance - bean instancecreationalContext - creational context instanceprotected T createComponentInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
createComponentInstance in class AbstractInjectionTargetBean<T>protected abstract T getInstance(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
creationalContext - creational context
protected void destroyComponentInstance(T instance,
javax.enterprise.context.spi.CreationalContext<T> creational)
destroyComponentInstance in class AbstractInjectionTargetBean<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 proxy
public boolean needsBeanLocalViewAddedToTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||