|
||||||||||
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.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.SessionSpecContainer |
---|
invokedMethod |
Fields inherited from class org.jboss.ejb3.session.SessionContainer |
---|
proxyDeployer |
Fields inherited from class org.jboss.ejb3.EJBContainer |
---|
assembly, beanClassName, classloader, defaultConstructorIndex, ejbName, enc, encFactory, encInjections, encInjectors, ENTITY_MANAGER_FACTORY, initialContextProperties, injectors, invokeStats, MANAGED_ENTITY_MANAGER_FACTORY, objectName, pool, reinitialize, xml |
Fields inherited from interface org.jboss.ejb3.Container |
---|
ENC_CTX_NAME |
Constructor Summary | |
---|---|
StatefulContainer(ClassLoader cl,
String beanClassName,
String ejbName,
org.jboss.aop.Domain domain,
Hashtable ctxProperties,
Ejb3Deployment deployment,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData beanMetaData)
|
Method Summary | |
---|---|
StatefulBeanContext |
create(Class<?>[] initTypes,
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. |
Object |
createLocalProxy(Object id)
|
Object |
createLocalProxy(Object id,
org.jboss.ejb3.annotation.LocalBinding binding)
|
Object |
createProxyLocalEjb21(Object id)
|
Object |
createProxyLocalEjb21(Object id,
org.jboss.ejb3.annotation.LocalBinding binding)
|
Object |
createProxyRemoteEjb21(Object id)
|
Object |
createProxyRemoteEjb21(Object id,
org.jboss.ejb3.annotation.RemoteBinding binding)
|
Object |
createRemoteProxy(Object id,
org.jboss.ejb3.annotation.RemoteBinding binding)
|
Serializable |
createSession(Class<?>[] initTypes,
Object[] initValues)
Create a stateful bean and return its oid. |
void |
destroy(StatefulBeanContext ctx)
|
protected void |
destroySession(Object id)
Deprecated. To be handled by SessionFactory.destroySession(Serializable) |
void |
destroySession(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) |
Object |
getBusinessObject(BeanContext beanContext,
Class businessInterface)
|
StatefulCache |
getCache()
|
CacheFactoryRegistry |
getCacheFactoryRegistry()
|
protected Object[] |
getInitParameters(Method method,
Class[] initParameterTypes,
Object[] initParameterValues)
|
protected String |
getJndiRegistrarBindName()
Returns the name under which the JNDI Registrar for this container is bound |
Object |
getMBean()
|
org.jboss.ejb3.endpoint.SessionFactory |
getSessionFactory()
Returns the SessionFactory for this SFSB Container |
javax.ejb.TimerService |
getTimerService()
|
javax.ejb.TimerService |
getTimerService(Object pKey)
This method is called by EJBTimerServiceImpl to re-establish a persistent timer. |
protected org.jboss.aop.joinpoint.InvocationResponse |
invokeEJBObjectMethod(org.jboss.ejb3.common.lang.SerializableMethod method,
org.jboss.ejb3.proxy.impl.invocation.StatefulRemoteInvocation statefulInvocation)
|
protected Object |
invokeHomeCreate(Method method,
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 |
invokeInit(Object bean,
Class[] initParameterTypes,
Object[] initParameterValues)
|
void |
invokePostActivate(BeanContext beanContext)
|
void |
invokePrePassivate(BeanContext beanContext)
|
boolean |
isClustered()
|
boolean |
isSessionAware()
Designates that this SFSB Container is session-aware. |
Object |
localHomeInvoke(Method method,
Object[] args)
Performs a synchronous or asynchronous local invocation |
Object |
localInvoke(Object id,
Method method,
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)
|
Methods inherited from class org.jboss.ejb3.session.SessionSpecContainer |
---|
getInvokedBusinessInterface, invoke, invoke, invoke, isEJBObjectMethod, isEjbObjectMethod, isHandleMethod, isHandleMethod, isHomeMethod, isHomeMethod |
Methods inherited from class org.jboss.ejb3.session.SessionContainer |
---|
constructProperNoSuchEjbException, createSession, getClusterFamilies, getJndiRegistrar, getMetaData, getProxyFactory, getProxyFactory, getProxyFactory, getRemoteBinding, getVirtualMethods, hasJNDIBinding, instantiated, invoke, invokeEJBObjectMethod, marshallException, marshallResponse, populateInvocation, registerWithAopDispatcher, resolveBusinessInterfaces, setJndiRegistrar |
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 |
Field Detail |
---|
protected StatefulCache cache
Constructor Detail |
---|
public StatefulContainer(ClassLoader cl, String beanClassName, String ejbName, org.jboss.aop.Domain domain, Hashtable ctxProperties, Ejb3Deployment deployment, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData beanMetaData) throws ClassNotFoundException
ClassNotFoundException
Method Detail |
---|
public StatefulBeanContext create(Class<?>[] initTypes, Object[] initValues)
create
in interface org.jboss.ejb3.cache.StatefulObjectFactory<StatefulBeanContext>
public BeanContext<?> createBeanContext()
Container
createBeanContext
in interface Container
createBeanContext
in class EJBContainer
public Object createProxyLocalEjb21(Object id, org.jboss.ejb3.annotation.LocalBinding binding) throws Exception
Exception
public Object createProxyRemoteEjb21(Object id) throws Exception
Exception
public Object createProxyRemoteEjb21(Object id, org.jboss.ejb3.annotation.RemoteBinding binding) throws Exception
Exception
public Object createProxyLocalEjb21(Object id) throws Exception
Exception
public void destroy(StatefulBeanContext ctx)
destroy
in interface org.jboss.ejb3.cache.StatefulObjectFactory<StatefulBeanContext>
public Object getMBean()
getMBean
in interface Container
protected void createAndStartCache() throws Exception
Exception
protected void lockedStart() throws Exception
SessionSpecContainer
lockedStart
in class SessionSpecContainer
Exception
protected void lockedStop() throws Exception
SessionSpecContainer
lockedStop
in class SessionSpecContainer
Exception
public StatefulCache getCache()
public CacheFactoryRegistry getCacheFactoryRegistry()
protected String getJndiRegistrarBindName()
getJndiRegistrarBindName
in class SessionContainer
public Object localHomeInvoke(Method method, Object[] args) throws Throwable
localHomeInvoke
in class SessionContainer
Throwable
public Object localInvoke(Object id, Method method, Object[] args) throws Throwable
localInvoke
in class SessionContainer
provider
- If null a synchronous invocation, otherwise an asynchronous
Throwable
public Serializable createSession(Class<?>[] initTypes, Object[] initValues)
createSession
in interface org.jboss.ejb3.endpoint.SessionFactory
createSession
in class SessionContainer
initTypes
- the parameter types used by the home's create methodinitValues
- the arguments for the home's create method
@Deprecated protected void destroySession(Object id)
SessionFactory.destroySession(Serializable)
SessionContainer
destroySession
in class SessionContainer
id
- the identifier of the sessionpublic org.jboss.aop.joinpoint.InvocationResponse dynamicInvoke(org.jboss.aop.joinpoint.Invocation invocation) throws Throwable
dynamicInvoke
in interface org.jboss.ejb3.proxy.spi.container.InvokableContext
dynamicInvoke
in class SessionContainer
Throwable
public javax.ejb.TimerService getTimerService()
getTimerService
in interface Container
public javax.ejb.TimerService getTimerService(Object pKey)
Container
getTimerService
in interface Container
public void invokePostActivate(BeanContext beanContext)
invokePostActivate
in interface Container
invokePostActivate
in class EJBContainer
public void invokePrePassivate(BeanContext beanContext)
invokePrePassivate
in interface Container
invokePrePassivate
in class EJBContainer
public void invokeInit(Object bean, Class[] initParameterTypes, Object[] initParameterValues)
invokeInit
in interface Container
invokeInit
in class EJBContainer
protected Object[] getInitParameters(Method method, Class[] initParameterTypes, Object[] initParameterValues)
public Object createLocalProxy(Object id) throws Exception
Exception
public Object createLocalProxy(Object id, org.jboss.ejb3.annotation.LocalBinding binding) throws Exception
Exception
public Object createRemoteProxy(Object id, org.jboss.ejb3.annotation.RemoteBinding binding) throws Exception
Exception
public boolean isClustered()
isClustered
in interface Container
isClustered
in class EJBContainer
protected Object invokeHomeCreate(Method method, Object[] args) throws Exception
SessionSpecContainer
invokeHomeCreate
in class SessionSpecContainer
Exception
protected org.jboss.aop.joinpoint.InvocationResponse invokeHomeMethod(org.jboss.aop.MethodInfo info, org.jboss.ejb3.proxy.impl.invocation.StatefulRemoteInvocation statefulInvocation) throws Throwable
Throwable
protected org.jboss.aop.joinpoint.InvocationResponse invokeEJBObjectMethod(org.jboss.ejb3.common.lang.SerializableMethod method, org.jboss.ejb3.proxy.impl.invocation.StatefulRemoteInvocation statefulInvocation) throws Throwable
Throwable
public Object getBusinessObject(BeanContext beanContext, Class businessInterface) throws IllegalStateException
getBusinessObject
in class EJBContainer
IllegalStateException
protected void popEnc()
EJBContainer
popEnc
in class EJBContainer
protected void pushEnc()
EJBContainer
pushEnc
in class EJBContainer
protected void removeHandle(javax.ejb.Handle arg) throws Exception
removeHandle
in class SessionContainer
Exception
public org.jboss.ejb3.endpoint.SessionFactory getSessionFactory() throws IllegalStateException
getSessionFactory
in interface org.jboss.ejb3.endpoint.Endpoint
getSessionFactory
in class SessionContainer
IllegalStateException
- If this Container is not session-awareEndpoint.getSessionFactory()
public boolean isSessionAware()
isSessionAware
in interface org.jboss.ejb3.endpoint.Endpoint
isSessionAware
in class SessionContainer
Endpoint.isSessionAware()
public void destroySession(Serializable session)
destroySession
in interface org.jboss.ejb3.endpoint.SessionFactory
SessionFactory.destroySession(java.io.Serializable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |