public class StatelessManager<X> extends AbstractSessionManager<X>
_ejbClass, _ejbManager, _filename, _line, _location, _mappedName, _ut| Constructor and Description |
|---|
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.
|
| 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> StatelessContext<X,T> |
createSessionContext(java.lang.Class<T> api) |
<T> StatelessPool<X,T> |
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) |
<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
|
StatelessPool<X,?> |
getLocalStatelessPool() |
<T> T |
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 <T> StatelessContext<X,T> |
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) |
createProxyFactory, destroy, getBean, getDeployBean, getInjectManager, getLazyGenerator, getLocalApi, getLocalBean, getProxyImplClass, getRemoteApibindContext, 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, registerInjection, setAroundInvoke, setBusinessLocal, setConfigLocation, setContainerTransaction, setEjbClass, setId, setLocation, setMappedName, setRemoteApiList, setResourceList, setServerProgram, setTransactionTimeout, start, timeout, toStringpublic 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.xmlprotected 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
AbstractSessionManagerinit in class AbstractSessionManager<X>java.lang.Exceptionprotected <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)
AbstractEjbBeanManagergetContext in class AbstractEjbBeanManager<X>public java.lang.Object[] getInterceptorBindings(java.util.List<Interceptor<?>> interceptorBeans, CreationalContextImpl<?> parentEnv)
public void bind()
bind in class AbstractSessionManager<X>