|
||||||||||
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.StatelessManager<X>
public class StatelessManager<X>
Server home container for a stateless session bean
Field Summary |
---|
Fields inherited from class com.caucho.ejb.server.AbstractEjbBeanManager |
---|
_ejbClass, _ejbManager, _filename, _line, _location, _mappedName, _ut |
Constructor Summary | |
---|---|
StatelessManager(EjbManager ejbContainer,
java.lang.String ejbName,
java.lang.String moduleName,
AnnotatedType<X> rawAnnType,
AnnotatedType<X> annotatedType,
EjbLazyGenerator<X> ejbGenerator)
Creates a new stateless server. |
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)
|
|
|
createStatelessPool(StatelessProxyFactory proxy,
StatelessContext<X,T> context,
java.util.List<Interceptor<?>> interceptorBeans)
Called by the StatelessProxy on initialization. |
|
AbstractContext |
getContext(java.lang.Object key,
boolean forceLoad)
Returns the context with the given key |
|
protected java.lang.Class<?> |
getContextClass()
|
|
java.lang.Object[] |
getInterceptorBindings(java.util.List<Interceptor<?>> interceptorBeans,
CreationalContextImpl<?> parentEnv)
|
|
|
getLocalJndiProxy(java.lang.Class<T> api)
Returns the JNDI proxy object to create instances of the local interface. |
|
|
getLocalProxy(java.lang.Class<T> api)
Returns the object implementation |
|
StatelessPool<X,?> |
getLocalStatelessPool()
|
|
|
getRemoteObject(java.lang.Class<T> api,
java.lang.String protocol)
Returns the remote stub for the container |
|
protected SessionBeanType |
getSessionBeanType()
|
|
int |
getSessionConcurrentMax()
|
|
long |
getSessionConcurrentTimeout()
|
|
protected
|
getSessionContext(java.lang.Class<T> api)
|
|
int |
getSessionIdleMax()
|
|
protected java.lang.String |
getType()
|
|
void |
init()
Initialize the server during the config phase. |
|
protected void |
postStart()
|
|
void |
setLocalStatelessPool(StatelessPool<X,?> pool)
|
Methods inherited from class com.caucho.ejb.session.AbstractSessionManager |
---|
createProxyFactory, destroy, getBean, getDeployBean, getInjectManager, getLazyGenerator, getLocalApi, getLocalBean, getProxyImplClass, getRemoteApi |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StatelessManager(EjbManager ejbContainer, java.lang.String ejbName, java.lang.String moduleName, AnnotatedType<X> rawAnnType, AnnotatedType<X> annotatedType, EjbLazyGenerator<X> ejbGenerator)
urlPrefix
- the url prefix for any request to the serverallowJVMCall
- allows fast calls to the same JVM (with serialization)config
- the session configuration from the ejb.xmlMethod Detail |
---|
protected java.lang.String getType()
getType
in class AbstractSessionManager<X>
protected SessionBeanType getSessionBeanType()
getSessionBeanType
in class AbstractSessionManager<X>
public int getSessionIdleMax()
public int getSessionConcurrentMax()
public long getSessionConcurrentTimeout()
protected <T> StatelessContext<X,T> getSessionContext(java.lang.Class<T> api)
getSessionContext
in class AbstractSessionManager<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 void setLocalStatelessPool(StatelessPool<X,?> pool)
public StatelessPool<X,?> getLocalStatelessPool()
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 java.lang.Class<?> getContextClass()
getContextClass
in class AbstractSessionManager<X>
protected BeanGenerator<X> createBeanGenerator()
createBeanGenerator
in class AbstractSessionManager<X>
public <T> StatelessPool<X,T> createStatelessPool(StatelessProxyFactory proxy, StatelessContext<X,T> context, java.util.List<Interceptor<?>> interceptorBeans)
protected EjbInjectionTarget<X> createInjectionTarget()
createInjectionTarget
in class AbstractEjbBeanManager<X>
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 init() throws java.lang.Exception
AbstractSessionManager
init
in class AbstractSessionManager<X>
java.lang.Exception
protected <T> StatelessContext<X,T> createSessionContext(java.lang.Class<T> api)
createSessionContext
in class AbstractSessionManager<X>
protected void postStart()
postStart
in class AbstractEjbBeanManager<X>
public AbstractContext getContext(java.lang.Object key, boolean forceLoad)
AbstractEjbBeanManager
getContext
in class AbstractEjbBeanManager<X>
public java.lang.Object[] getInterceptorBindings(java.util.List<Interceptor<?>> interceptorBeans, CreationalContextImpl<?> parentEnv)
public void bind()
bind
in class AbstractSessionManager<X>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |