public class StatefulManager<X> extends AbstractSessionManager<X>
_ejbClass, _ejbManager, _filename, _line, _location, _mappedName, _ut
Constructor and Description |
---|
StatefulManager(EjbManager ejbContainer,
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 <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 EjbInjectionTarget<X> |
createInjectionTarget() |
protected <T> StatefulContext<X,T> |
createSessionContext(java.lang.Class<T> api) |
void |
destroy()
Cleans up the entity server nicely.
|
java.lang.String |
generateKey() |
AbstractContext<X> |
getContext(java.lang.Object key,
boolean forceLoad)
Finds the remote bean by its key.
|
protected java.lang.Class<?> |
getContextClass() |
long |
getIdleTimeout() |
<T> java.lang.Object |
getLocalJndiProxy(java.lang.Class<T> api)
Returns the JNDI proxy object to create instances of the
local interface.
|
<T> T |
getLocalProxy(java.lang.Class<T> api)
Returns the object implementation
|
<T> T |
getRemoteObject(java.lang.Class<T> api,
java.lang.String protocol)
Returns the remote stub for the container
|
protected SessionBeanType |
getSessionBeanType() |
<T> StatefulContext<X,T> |
getSessionContext(java.lang.Class<T> api) |
java.lang.Object |
getStatefulProxy(java.lang.String key) |
protected java.lang.String |
getType() |
<T> T |
initProxy(T instance,
CreationalContextImpl<T> env) |
void |
remove(java.lang.String key)
Remove an object.
|
createProxyFactory, getBean, getDeployBean, getInjectManager, getLazyGenerator, getLocalApi, getLocalBean, getProxyImplClass, getRemoteApi, init
bindContext, bindInjection, destroy, destroyInstance, encodeId, error, getAnnotatedType, getClassLoader, getContext, getContext, getEjbClass, getEjbContainer, getEJBName, getId, getMappedName, getModuleInjectManager, getModuleName, getProtocolId, getProtocolId, getRawAnnotatedType, getRemoteApiList, 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 StatefulManager(EjbManager ejbContainer, 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 AbstractSessionManager<X>
protected java.lang.Class<?> getContextClass()
getContextClass
in class AbstractSessionManager<X>
protected SessionBeanType getSessionBeanType()
getSessionBeanType
in class AbstractSessionManager<X>
public long getIdleTimeout()
public void bind()
bind
in class AbstractSessionManager<X>
public <T> StatefulContext<X,T> getSessionContext(java.lang.Class<T> api)
getSessionContext
in class AbstractSessionManager<X>
protected EjbInjectionTarget<X> createInjectionTarget()
createInjectionTarget
in class AbstractEjbBeanManager<X>
public <T> java.lang.Object getLocalJndiProxy(java.lang.Class<T> api)
getLocalJndiProxy
in class AbstractEjbBeanManager<X>
api
- the bean's api to return a value forpublic <T> T getLocalProxy(java.lang.Class<T> api)
getLocalProxy
in class AbstractSessionManager<X>
api
- the bean's api to return a value forpublic java.lang.Object getStatefulProxy(java.lang.String key)
public <T> T initProxy(T instance, CreationalContextImpl<T> env)
protected <T> StatefulContext<X,T> createSessionContext(java.lang.Class<T> api)
createSessionContext
in class AbstractSessionManager<X>
protected <T> Bean<T> createBean(ManagedBeanImpl<X> mBean, java.lang.Class<T> api, java.util.Set<java.lang.reflect.Type> apiList, AnnotatedType<X> extAnnType)
createBean
in class AbstractSessionManager<X>
protected BeanGenerator<X> createBeanGenerator()
createBeanGenerator
in class AbstractSessionManager<X>
public AbstractContext<X> getContext(java.lang.Object key, boolean forceLoad) throws FinderException
getContext
in class AbstractEjbBeanManager<X>
key
- the remote keyFinderException
public java.lang.String generateKey()
public <T> T getRemoteObject(java.lang.Class<T> api, java.lang.String protocol)
getRemoteObject
in class AbstractEjbBeanManager<X>
api
- the bean's api to return a value forprotocol
- the remote protocolpublic void remove(java.lang.String key)
public void destroy()
destroy
in class AbstractSessionManager<X>