public abstract class AbstractSessionManager<X> extends AbstractEjbBeanManager<X>
_ejbClass, _ejbManager, _filename, _line, _location, _mappedName, _ut
Constructor and Description |
---|
AbstractSessionManager(EjbManager manager,
java.lang.String ejbName,
java.lang.String moduleName,
AnnotatedType<X> rawAnnType,
AnnotatedType<X> annotatedType,
EjbLazyGenerator<X> lazyGenerator) |
Modifier and Type | Method and Description |
---|---|
void |
bind() |
protected abstract <T> Bean<T> |
createBean(ManagedBeanImpl<X> mBean,
java.lang.Class<T> api,
java.util.Set<java.lang.reflect.Type> apiList,
AnnotatedType<X> extAnnType) |
protected BeanGenerator<X> |
createBeanGenerator()
Creates the bean generator for the session bean.
|
protected <T> SessionProxyFactory<T> |
createProxyFactory(AbstractSessionContext<X,T> context) |
protected <T> AbstractSessionContext<X,T> |
createSessionContext(java.lang.Class<T> api) |
void |
destroy()
Cleans up the server on shutdown
|
protected Bean<X> |
getBean() |
protected java.lang.Class<?> |
getContextClass() |
Bean<X> |
getDeployBean() |
InjectManager |
getInjectManager() |
protected EjbLazyGenerator<X> |
getLazyGenerator() |
java.util.ArrayList<AnnotatedType<? super X>> |
getLocalApi() |
AnnotatedType<X> |
getLocalBean() |
<T> T |
getLocalProxy(java.lang.Class<T> api)
Returns the a new local stub for the given API
|
java.lang.Class<?> |
getProxyImplClass() |
java.util.ArrayList<AnnotatedType<? super X>> |
getRemoteApi() |
protected SessionBeanType |
getSessionBeanType() |
protected <T> AbstractSessionContext<X,T> |
getSessionContext(java.lang.Class<T> api) |
protected java.lang.String |
getType() |
void |
init()
Initialize the server during the config phase.
|
bindContext, bindInjection, createInjectionTarget, destroy, destroyInstance, encodeId, error, getAnnotatedType, getClassLoader, getContext, getContext, getContext, getEjbClass, getEjbContainer, getEJBName, getId, getLocalJndiProxy, getMappedName, getModuleInjectManager, getModuleName, getProtocolId, getProtocolId, getRawAnnotatedType, getRemoteApiList, getRemoteObject, getServerProgram, getTimerService, getTransactionTimeout, getUserTransaction, hasRemoteObject, invalidateCache, isContainerTransaction, isDead, isDependValid, lookup, newInstance, postStart, registerInjection, setAroundInvoke, setBusinessLocal, setConfigLocation, setContainerTransaction, setEjbClass, setId, setLocation, setMappedName, setRemoteApiList, setResourceList, setServerProgram, setTransactionTimeout, start, timeout, toString
public AbstractSessionManager(EjbManager manager, java.lang.String ejbName, java.lang.String moduleName, AnnotatedType<X> rawAnnType, AnnotatedType<X> annotatedType, EjbLazyGenerator<X> lazyGenerator)
protected java.lang.String getType()
getType
in class AbstractEjbBeanManager<X>
public Bean<X> getDeployBean()
getDeployBean
in class AbstractEjbBeanManager<X>
public java.lang.Class<?> getProxyImplClass()
public InjectManager getInjectManager()
getInjectManager
in class AbstractEjbBeanManager<X>
protected EjbLazyGenerator<X> getLazyGenerator()
public java.util.ArrayList<AnnotatedType<? super X>> getLocalApi()
getLocalApi
in class AbstractEjbBeanManager<X>
public java.util.ArrayList<AnnotatedType<? super X>> getRemoteApi()
getRemoteApi
in class AbstractEjbBeanManager<X>
public AnnotatedType<X> getLocalBean()
getLocalBean
in class AbstractEjbBeanManager<X>
protected <T> AbstractSessionContext<X,T> getSessionContext(java.lang.Class<T> api)
public void init() throws java.lang.Exception
init
in class AbstractEjbBeanManager<X>
java.lang.Exception
public void bind()
bind
in class AbstractEjbBeanManager<X>
protected BeanGenerator<X> createBeanGenerator()
public <T> T getLocalProxy(java.lang.Class<T> api)
AbstractEjbBeanManager
getLocalProxy
in class AbstractEjbBeanManager<X>
api
- the bean's api to return a value forprotected <T> AbstractSessionContext<X,T> createSessionContext(java.lang.Class<T> api)
protected <T> SessionProxyFactory<T> createProxyFactory(AbstractSessionContext<X,T> context)
protected java.lang.Class<?> getContextClass()
protected abstract <T> Bean<T> createBean(ManagedBeanImpl<X> mBean, java.lang.Class<T> api, java.util.Set<java.lang.reflect.Type> apiList, AnnotatedType<X> extAnnType)
protected SessionBeanType getSessionBeanType()
public void destroy()
AbstractEjbBeanManager
destroy
in class AbstractEjbBeanManager<X>