|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.ejb3.EJBContainer
org.jboss.ejb3.TimerServiceContainer
org.jboss.ejb3.session.SessionContainer
org.jboss.ejb3.session.SessionSpecContainer
org.jboss.ejb3.stateful.StatefulContainer
public class StatefulContainer
Comment
| Field Summary | |
|---|---|
protected StatefulCache |
cache
|
| Fields inherited from class org.jboss.ejb3.session.SessionContainer |
|---|
proxyDeployer |
| Fields inherited from class org.jboss.ejb3.TimerServiceContainer |
|---|
timerService |
| Fields inherited from class org.jboss.ejb3.EJBContainer |
|---|
assembly, beanClassName, classloader, ejbName, enc, encFactory, encInjections, encInjectors, ENTITY_MANAGER_FACTORY, initialContextProperties, injectors, invokeStats, MANAGED_ENTITY_MANAGER_FACTORY, metadataBasedAnnotationRepo, objectName, pool, reinitialize, xml |
| Fields inherited from interface org.jboss.ejb3.Container |
|---|
ENC_CTX_NAME |
| Constructor Summary | |
|---|---|
StatefulContainer(java.lang.ClassLoader cl,
java.lang.String beanClassName,
java.lang.String ejbName,
org.jboss.aop.Domain domain,
java.util.Hashtable ctxProperties,
Ejb3Deployment deployment,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData beanMetaData,
java.util.concurrent.ExecutorService asynchronousExecutor)
|
|
| Method Summary | |
|---|---|
StatefulBeanContext |
create(java.lang.Class<?>[] initTypes,
java.lang.Object[] initValues)
|
protected void |
createAndStartCache()
Creates and starts the configured cache, if not started already |
BeanContext<?> |
createBeanContext()
Create a bean context for use in a pool. |
java.lang.Object |
createLocalProxy(java.lang.Object id)
|
java.lang.Object |
createLocalProxy(java.lang.Object id,
org.jboss.ejb3.annotation.LocalBinding binding)
|
java.lang.Object |
createProxyLocalEjb21(java.lang.Object id)
|
java.lang.Object |
createProxyLocalEjb21(java.lang.Object id,
org.jboss.ejb3.annotation.LocalBinding binding)
|
java.lang.Object |
createProxyRemoteEjb21(java.lang.Object id)
|
java.lang.Object |
createProxyRemoteEjb21(java.lang.Object id,
org.jboss.ejb3.annotation.RemoteBinding binding)
|
java.lang.Object |
createRemoteProxy(java.lang.Object id,
org.jboss.ejb3.annotation.RemoteBinding binding)
|
java.io.Serializable |
createSession(java.lang.Class<?>[] initTypes,
java.lang.Object[] initValues)
Create a stateful bean and return its oid. |
void |
destroy(StatefulBeanContext ctx)
|
protected void |
destroySession(java.lang.Object id)
Deprecated. To be handled by SessionFactory.destroySession(Serializable) |
void |
destroySession(java.io.Serializable session)
Destroys the specified session |
org.jboss.aop.joinpoint.InvocationResponse |
dynamicInvoke(org.jboss.aop.joinpoint.Invocation invocation)
Remote Invocation entry point, as delegated from InvokableContextClassProxyHack (Remoting Dispatcher) |
java.lang.Object |
getBusinessObject(BeanContext beanContext,
java.lang.Class businessInterface)
|
StatefulCache |
getCache()
|
CacheFactoryRegistry |
getCacheFactoryRegistry()
|
org.jboss.ejb3.effigy.SessionBeanEffigy |
getEffigy()
|
java.lang.String |
getJndiRegistrarBindName()
Returns the name under which the JNDI Registrar for this container is bound |
java.lang.Object |
getMBean()
|
org.jboss.ejb3.endpoint.SessionFactory |
getSessionFactory()
Returns the SessionFactory for this SFSB Container |
protected org.jboss.ejb3.timerservice.spi.TimedObjectInvoker |
getTimedObjectInvoker()
Returns the TimedObjectInvoker which will be used by the
timer implementations to invoke the timeout method (annotated with Timeout
or specified in deployment descriptor) on the bean. |
protected org.jboss.aop.joinpoint.InvocationResponse |
invokeEJBObjectMethod(org.jboss.ejb3.common.lang.SerializableMethod method,
org.jboss.ejb3.proxy.impl.invocation.StatefulRemoteInvocation statefulInvocation)
|
protected java.lang.Object |
invokeHomeCreate(java.lang.reflect.Method method,
java.lang.Object[] args)
Provides implementation for this bean's EJB 2.1 Home.create() method |
protected org.jboss.aop.joinpoint.InvocationResponse |
invokeHomeMethod(org.jboss.aop.MethodInfo info,
org.jboss.ejb3.proxy.impl.invocation.StatefulRemoteInvocation statefulInvocation)
|
void |
invokePostActivate(BeanContext beanContext)
|
void |
invokePrePassivate(BeanContext beanContext)
|
boolean |
isClustered()
|
boolean |
isSessionAware()
Designates that this SFSB Container is session-aware. |
java.lang.Object |
localHomeInvoke(java.lang.reflect.Method method,
java.lang.Object[] args)
Performs a synchronous or asynchronous local invocation |
java.lang.Object |
localInvoke(java.lang.Object id,
java.lang.reflect.Method method,
java.lang.Object[] args)
Performs a synchronous or asynchronous local invocation |
protected void |
lockedStart()
Lifecycle Start |
protected void |
lockedStop()
Lifecycle Stop |
protected void |
popEnc()
Pops EJB's ENC from the stack. |
protected void |
pushEnc()
Makes sure that EJB's ENC is available Delegates to whatever implementation is used to push the ENC of the EJB onto the stack |
protected void |
removeHandle(javax.ejb.Handle arg)
|
protected void |
verifyBusinessObjectFactory()
|
| Methods inherited from class org.jboss.ejb3.session.SessionSpecContainer |
|---|
cancel, getAsynchronousExecutor, getBusinessInterfaces, getBusinessObjectFactory, getCurrentAsyncInvocations, invoke, invoke, invoke, invokeAsync, isEJBObjectMethod, isEjbObjectMethod, isHandleMethod, isHandleMethod, isHomeMethod, isHomeMethod, setBusinessObjectFactory, setCurrentAsyncInvocations |
| Methods inherited from class org.jboss.ejb3.TimerServiceContainer |
|---|
afterStart, create, getTimerService, getTimerService, setTimerServiceFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.ejb3.proxy.spi.container.StatefulSessionFactory |
|---|
createSession |
| Methods inherited from interface org.jboss.ejb3.context.spi.BeanManager |
|---|
getEJBHome, getEJBLocalHome, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, lookup, setRollbackOnly |
| Field Detail |
|---|
protected StatefulCache cache
| Constructor Detail |
|---|
public StatefulContainer(java.lang.ClassLoader cl,
java.lang.String beanClassName,
java.lang.String ejbName,
org.jboss.aop.Domain domain,
java.util.Hashtable ctxProperties,
Ejb3Deployment deployment,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData beanMetaData,
java.util.concurrent.ExecutorService asynchronousExecutor)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException| Method Detail |
|---|
public StatefulBeanContext create(java.lang.Class<?>[] initTypes,
java.lang.Object[] initValues)
create in interface org.jboss.ejb3.cache.StatefulObjectFactory<StatefulBeanContext>StatefulObjectFactory.create(Class[], Object[])public BeanContext<?> createBeanContext()
Container
createBeanContext in interface ContainercreateBeanContext in class EJBContainer
public java.lang.Object createProxyLocalEjb21(java.lang.Object id,
org.jboss.ejb3.annotation.LocalBinding binding)
throws java.lang.Exception
java.lang.Exception
public java.lang.Object createProxyRemoteEjb21(java.lang.Object id)
throws java.lang.Exception
java.lang.Exception
public java.lang.Object createProxyRemoteEjb21(java.lang.Object id,
org.jboss.ejb3.annotation.RemoteBinding binding)
throws java.lang.Exception
java.lang.Exception
public java.lang.Object createProxyLocalEjb21(java.lang.Object id)
throws java.lang.Exception
java.lang.Exceptionpublic void destroy(StatefulBeanContext ctx)
destroy in interface org.jboss.ejb3.cache.StatefulObjectFactory<StatefulBeanContext>public org.jboss.ejb3.effigy.SessionBeanEffigy getEffigy()
getEffigy in class EJBContainerpublic java.lang.Object getMBean()
getMBean in interface Container
protected void createAndStartCache()
throws java.lang.Exception
java.lang.Exception
protected void lockedStart()
throws java.lang.Exception
SessionSpecContainer
lockedStart in class SessionSpecContainerjava.lang.Exception
protected void lockedStop()
throws java.lang.Exception
SessionSpecContainer
lockedStop in class SessionSpecContainerjava.lang.ExceptionEJBContainer.lockedStop()public StatefulCache getCache()
public CacheFactoryRegistry getCacheFactoryRegistry()
public java.lang.String getJndiRegistrarBindName()
getJndiRegistrarBindName in class SessionContainer
public java.lang.Object localHomeInvoke(java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
localHomeInvoke in class SessionContainerjava.lang.Throwable
public java.lang.Object localInvoke(java.lang.Object id,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
localInvoke in class SessionContainerjava.lang.Throwable
public java.io.Serializable createSession(java.lang.Class<?>[] initTypes,
java.lang.Object[] initValues)
createSession in interface org.jboss.ejb3.endpoint.SessionFactorycreateSession in class SessionContainerinitTypes - the parameter types used by the home's create methodinitValues - the arguments for the home's create method
@Deprecated protected void destroySession(java.lang.Object id)
SessionFactory.destroySession(Serializable)
SessionContainer
destroySession in class SessionContainerid - the identifier of the session
public org.jboss.aop.joinpoint.InvocationResponse dynamicInvoke(org.jboss.aop.joinpoint.Invocation invocation)
throws java.lang.Throwable
dynamicInvoke in interface org.jboss.ejb3.proxy.spi.container.InvokableContextdynamicInvoke in class SessionContainerjava.lang.Throwablepublic void invokePostActivate(BeanContext beanContext)
invokePostActivate in interface ContainerinvokePostActivate in class EJBContainerpublic void invokePrePassivate(BeanContext beanContext)
invokePrePassivate in interface ContainerinvokePrePassivate in class EJBContainer
public java.lang.Object createLocalProxy(java.lang.Object id)
throws java.lang.Exception
java.lang.Exception
public java.lang.Object createLocalProxy(java.lang.Object id,
org.jboss.ejb3.annotation.LocalBinding binding)
throws java.lang.Exception
java.lang.Exception
public java.lang.Object createRemoteProxy(java.lang.Object id,
org.jboss.ejb3.annotation.RemoteBinding binding)
throws java.lang.Exception
java.lang.Exceptionpublic boolean isClustered()
isClustered in interface ContainerisClustered in class EJBContainer
protected java.lang.Object invokeHomeCreate(java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Exception
SessionSpecContainer
invokeHomeCreate in class SessionSpecContainerjava.lang.Exception
protected org.jboss.aop.joinpoint.InvocationResponse invokeHomeMethod(org.jboss.aop.MethodInfo info,
org.jboss.ejb3.proxy.impl.invocation.StatefulRemoteInvocation statefulInvocation)
throws java.lang.Throwable
java.lang.Throwable
protected org.jboss.aop.joinpoint.InvocationResponse invokeEJBObjectMethod(org.jboss.ejb3.common.lang.SerializableMethod method,
org.jboss.ejb3.proxy.impl.invocation.StatefulRemoteInvocation statefulInvocation)
throws java.lang.Throwable
java.lang.Throwable
public java.lang.Object getBusinessObject(BeanContext beanContext,
java.lang.Class businessInterface)
throws java.lang.IllegalStateException
getBusinessObject in class EJBContainerjava.lang.IllegalStateExceptionprotected void popEnc()
EJBContainer
popEnc in class EJBContainerprotected void pushEnc()
EJBContainer
pushEnc in class EJBContainer
protected void removeHandle(javax.ejb.Handle arg)
throws java.lang.Exception
removeHandle in class SessionContainerjava.lang.Exception
public org.jboss.ejb3.endpoint.SessionFactory getSessionFactory()
throws java.lang.IllegalStateException
getSessionFactory in interface org.jboss.ejb3.endpoint.EndpointgetSessionFactory in class SessionContainerjava.lang.IllegalStateException - If this Container is not session-awareEndpoint.getSessionFactory()public boolean isSessionAware()
isSessionAware in interface org.jboss.ejb3.endpoint.EndpointisSessionAware in class SessionContainerEndpoint.isSessionAware()public void destroySession(java.io.Serializable session)
destroySession in interface org.jboss.ejb3.endpoint.SessionFactorySessionFactory.destroySession(java.io.Serializable)protected org.jboss.ejb3.timerservice.spi.TimedObjectInvoker getTimedObjectInvoker()
TimerServiceContainerTimedObjectInvoker which will be used by the
timer implementations to invoke the timeout method (annotated with Timeout
or specified in deployment descriptor) on the bean.
getTimedObjectInvoker in class TimerServiceContainerprotected void verifyBusinessObjectFactory()
verifyBusinessObjectFactory in class SessionSpecContainer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||