|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.ejb.server.AbstractEjbBeanManager<X>
com.caucho.ejb.session.AbstractSessionManager<X>
com.caucho.ejb.session.SingletonManager<X>
public class SingletonManager<X>
Server container for a session bean.
Field Summary |
---|
Fields inherited from class com.caucho.ejb.server.AbstractEjbBeanManager |
---|
_ejbClass, _ejbManager, _filename, _line, _location, _mappedName, _ut |
Constructor Summary | |
---|---|
SingletonManager(EjbManager ejbContainer,
java.lang.String ejbName,
java.lang.String moduleName,
AnnotatedType<X> rawAnnType,
AnnotatedType<X> annotatedType,
EjbLazyGenerator<X> lazyGenerator)
|
Method Summary | ||
---|---|---|
void |
bind()
|
|
protected
|
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
|
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()
|
|
|
getLocalJndiProxy(java.lang.Class<T> api)
Returns the JNDI proxy object to create instances of the local interface. |
|
|
getRemoteObject(java.lang.Class<T> api,
java.lang.String protocol)
Returns the remote skeleton for the given API |
|
protected SessionBeanType |
getSessionBeanType()
|
|
protected
|
getSessionContext(java.lang.Class<T> api)
|
|
protected java.lang.String |
getType()
|
|
|
initProxy(T proxy,
CreationalContextImpl<T> env)
|
|
X |
newInstance(CreationalContextImpl<X> env)
|
|
protected void |
postStart()
|
Methods inherited from class com.caucho.ejb.session.AbstractSessionManager |
---|
createProxyFactory, getBean, getDeployBean, getInjectManager, getLazyGenerator, getLocalApi, getLocalBean, getLocalProxy, getProxyImplClass, getRemoteApi, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SingletonManager(EjbManager ejbContainer, java.lang.String ejbName, java.lang.String moduleName, AnnotatedType<X> rawAnnType, AnnotatedType<X> annotatedType, EjbLazyGenerator<X> lazyGenerator)
Method Detail |
---|
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 key
FinderException
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |