public abstract class BaseEjbBean<T> extends AbstractInjectionTargetBean<T> implements EnterpriseBeanMarker
| Modifier and Type | Field and Description |
|---|---|
protected javax.enterprise.inject.spi.SessionBeanType |
ejbType
Session bean type
|
static Object[] |
OBJECT_EMPTY |
decorators, inheritedMetaData, interceptorStackapiTypes, enabled, implQualifiers, injectionPoints, logger, name, nullable, passivatingId, returnType, scopeClass, serializable, specializedBean, stereoTypeClasses, stereoTypes, webBeansContext, webBeansType| Constructor and Description |
|---|
BaseEjbBean(Class<T> ejbClassType,
javax.enterprise.inject.spi.SessionBeanType type,
WebBeansContext webBeansContext)
Creates a new instance of the session bean.
|
| 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 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
|
addInjectedField, addInjectedFieldToSuper, addInjectedMethod, addInjectedMethodToSuper, addObservableMethod, afterConstructor, beforeConstructor, createDefaultInstance, createInstance, destroyInstance, getAnnotatedType, getDecoratorStack, getInheritedMetaData, getInjectedFields, getInjectedFromSuperFields, getInjectedFromSuperMethods, getInjectedMethods, getInterceptorStack, getObservableMethods, injectFields, injectMethods, injectResources, injectSuperFields, injectSuperMethods, postConstruct, postConstructDefault, preDestroy, preDestroyDefault, setAnnotatedType, setInheritedMetaData, validatePassivationDependenciesaddApiType, addInjectionPoint, addQualifier, addStereoType, create, createNewInstance, destroy, destroyCreatedInstance, equals, getBeanClass, getId, getInjectionPoint, getInjectionPoints, getLogger, getManager, getName, getOwbStereotypes, getQualifiers, getReturnType, getScope, getStereotypes, getTypes, getWebBeansContext, getWebBeansType, hashCode, isAlternative, isDependent, isEnabled, isNullable, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBean, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddApiType, addInjectionPoint, addQualifier, addStereoType, createNewInstance, destroyCreatedInstance, getId, getInjectionPoint, getOwbStereotypes, getReturnType, getWebBeansContext, getWebBeansType, isDependent, isEnabled, isSerializable, isSpecializedBean, setEnabled, setImplScopeType, setName, setNullable, setSerializable, setSpecializedBeanpublic static final Object[] OBJECT_EMPTY
protected final javax.enterprise.inject.spi.SessionBeanType ejbType
public BaseEjbBean(Class<T> ejbClassType, javax.enterprise.inject.spi.SessionBeanType type, WebBeansContext webBeansContext)
webBeansContext - ejbClassType - ebj class typepublic 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 contextprotected 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 proxypublic boolean needsBeanLocalViewAddedToTypes()
Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.