public class SingletonManager<X> extends AbstractSessionManager<X>
_ejbClass, _ejbManager, _filename, _line, _location, _mappedName, _ut
Constructor and Description |
---|
SingletonManager(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> SingletonContext<X,T> |
createSessionContext(java.lang.Class<T> api) |
void |
destroy()
Cleans up the entity server nicely.
|
void |
destroy(java.lang.Object instance,
CreationalContextImpl<?> env) |
void |
destroyInstance(X instance)
Destroy an instance
|
AbstractContext |
getContext(java.lang.Object key,
boolean forceLoad)
Finds the remote bean by its key.
|
protected java.lang.Class<?> |
getContextClass() |
<T> java.lang.Object |
getLocalJndiProxy(java.lang.Class<T> api)
Returns the JNDI proxy object to create instances of the local interface.
|
<T> T |
getRemoteObject(java.lang.Class<T> api,
java.lang.String protocol)
Returns the remote skeleton for the given API
|
protected SessionBeanType |
getSessionBeanType() |
protected <T> SingletonContext<X,T> |
getSessionContext(java.lang.Class<T> api) |
protected java.lang.String |
getType() |
<T> T |
initProxy(T proxy,
CreationalContextImpl<T> env) |
X |
newInstance(CreationalContextImpl<X> env) |
protected void |
postStart() |
createProxyFactory, getBean, getDeployBean, getInjectManager, getLazyGenerator, getLocalApi, getLocalBean, getLocalProxy, getProxyImplClass, getRemoteApi, init
bindContext, bindInjection, 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, registerInjection, setAroundInvoke, setBusinessLocal, setConfigLocation, setContainerTransaction, setEjbClass, setId, setLocation, setMappedName, setRemoteApiList, setResourceList, setServerProgram, setTransactionTimeout, start, timeout, toString
public SingletonManager(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 SessionBeanType getSessionBeanType()
getSessionBeanType
in class AbstractSessionManager<X>
protected <T> SingletonContext<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 void bind()
bind
in class AbstractSessionManager<X>
public X newInstance(CreationalContextImpl<X> env)
newInstance
in class AbstractEjbBeanManager<X>
protected void postStart()
postStart
in class AbstractEjbBeanManager<X>
public <T> T initProxy(T proxy, CreationalContextImpl<T> env)
public void destroy(java.lang.Object instance, CreationalContextImpl<?> env)
destroy
in class AbstractEjbBeanManager<X>
public void destroyInstance(X instance)
destroyInstance
in class AbstractEjbBeanManager<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 <T> SingletonContext<X,T> createSessionContext(java.lang.Class<T> api)
createSessionContext
in class AbstractSessionManager<X>
protected java.lang.Class<?> getContextClass()
getContextClass
in class AbstractSessionManager<X>
protected BeanGenerator<X> createBeanGenerator()
createBeanGenerator
in class AbstractSessionManager<X>
public AbstractContext getContext(java.lang.Object key, boolean forceLoad) throws FinderException
getContext
in class AbstractEjbBeanManager<X>
key
- the remote keyFinderException
public void destroy()
destroy
in class AbstractSessionManager<X>
public <T> T getRemoteObject(java.lang.Class<T> api, java.lang.String protocol)
AbstractEjbBeanManager
getRemoteObject
in class AbstractEjbBeanManager<X>
api
- the bean's api to return a value forprotocol
- the remote protocol