org.jboss.ejb3.stateful
Class StatefulContainer

java.lang.Object
  extended by org.jboss.aop.Advisor
      extended by org.jboss.aop.ClassContainer
          extended by org.jboss.ejb3.EJBContainer
              extended by org.jboss.ejb3.SessionContainer
                  extended by org.jboss.ejb3.stateful.StatefulContainer
All Implemented Interfaces:
Container

public class StatefulContainer
extends SessionContainer

Comment

Version:
$Revision: 1.7.2.4 $
Author:
Bill Burke

Field Summary
protected  StatefulCache cache
           
 
Fields inherited from class org.jboss.ejb3.SessionContainer
clusterFamilies, proxyDeployer
 
Fields inherited from class org.jboss.ejb3.EJBContainer
beanClassName, beanContextClass, callbackHandler, classloader, defaultConstructorIndex, ejbLinkResolver, ejbName, enc, ENTITY_MANAGER_FACTORY, entityManagerFactory, envEntries, initialContextProperties, injectors, MANAGED_ENTITY_MANAGER_FACTORY, objectName, pool
 
Fields inherited from class org.jboss.aop.ClassContainer
advisedFields
 
Fields inherited from class org.jboss.aop.Advisor
adviceBindings, adviceInterceptors, advisedMethods, annotations, aspects, classAnnotations, classMetaData, classMetaDataBindings, clazz, constructionInterceptors, constructorInterceptors, constructorMetaData, constructors, defaultMetaData, doesHaveAspects, fieldMetaData, interfaceIntroductions, manager, methodInterceptors, methodMetaData, name, perInstanceAspectDefinitions, perInstanceJoinpointAspectDefinitions
 
Fields inherited from interface org.jboss.ejb3.Container
ENC_CTX_NAME
 
Constructor Summary
StatefulContainer(ClassLoader cl, String beanClassName, String ejbName, org.jboss.aop.AspectManager manager, Hashtable ctxProperties)
           
 
Method Summary
 Object createSession()
          Create a stateful bean and return its oid.
 Object createSession(Class[] initTypes, Object[] initValues)
          Create a stateful bean and return its oid.
 org.jboss.aop.joinpoint.InvocationResponse dynamicInvoke(Object target, org.jboss.aop.joinpoint.Invocation invocation)
          This should be a remote invocation call
 StatefulCache getCache()
           
protected  Class[] getHandledCallbacks()
           
protected  Object[] getInitParameters(Method method, Class[] initParameterTypes, Object[] initParameterValues)
           
 javax.ejb.TimerService getTimerService()
           
protected  org.jboss.aop.joinpoint.InvocationResponse invokeEJBObjectMethod(org.jboss.aop.MethodInfo info, StatefulRemoteInvocation statefulInvocation)
           
protected  org.jboss.aop.joinpoint.InvocationResponse invokeHandleMethod(org.jboss.aop.MethodInfo info, StatefulRemoteInvocation statefulInvocation)
           
protected  org.jboss.aop.joinpoint.InvocationResponse invokeHomeMethod(org.jboss.aop.MethodInfo info, StatefulRemoteInvocation statefulInvocation)
           
 void invokeInit(Object bean)
           
 void invokeInit(Object bean, Class[] initParameterTypes, Object[] initParameterValues)
           
 void invokePostActivate(Object bean)
           
 void invokePrePassivate(Object bean)
           
 Object localInvoke(Object id, Method method, Object[] args)
          Performs a synchronous local invocation
 Object localInvoke(Object id, Method method, Object[] args, org.jboss.aspects.asynch.FutureHolder provider)
          Performs a synchronous or asynchronous local invocation
 void start()
           
 void stop()
           
 
Methods inherited from class org.jboss.ejb3.SessionContainer
createMethodMap, getClusterFamilies, getContainersContext, isEJBObjectMethod, isHandleMethod, isHomeMethod, setDefaultClientBinding
 
Methods inherited from class org.jboss.ejb3.EJBContainer
addEnvEntry, construct, create, createCallbackHandler, createEnvEntries, destroy, getBeanClass, getBeanClassName, getEjbLinkResolver, getEjbName, getEnc, getEnvEntryValue, getInitialContext, getInitialContextProperties, getManagedEntityManagerFactory, getObjectName, getPool, initializePool, invokePostConstruct, invokePreDestroy, resolveInjectors, setEjbLinkResolver, setManagedEntityManagerFactory
 
Methods inherited from class org.jboss.aop.ClassContainer
addClassMetaData, bindClassMetaData, createConstructorTables, createInterceptorChains, initializeClassContainer, initializeMetadata, initializeMethodChain, rebindClassMetaData, rebuildInterceptors, removeClassMetaData, setClass
 
Methods inherited from class org.jboss.aop.Advisor
addAdviceInterceptor, addInterfaceIntroduction, addPerClassAspect, addPerInstanceAspect, addPerInstanceJoinpointAspect, applyPrecedence, createInterceptorChain, deployAnnotationOverrides, deployMethodAnnotationOverrides, finalizeConstructionChain, finalizeConstructorChain, finalizeMethodChain, getAdviceInterceptor, getAnnotations, getClassMetaData, getClassMetadataBindings, getClazz, getConstructionInterceptors, getConstructorInterceptors, getConstructorMetaData, getConstructors, getDefaultMetaData, getFieldMetaData, getInterfaceIntroductions, getManager, getMethodInfo, getMethodMetaData, getName, getPerClassAspect, getPerClassAspect, getPerInstanceAspectDefinitions, getPerInstanceJoinpointAspectDefinitions, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAspects, initializeConstructionChain, initializeConstructorChain, newBindingAdded, removeAdviceBinding, removeAdviceBindings, removeInterfaceIntroduction, removePerClassAspect, removePerInstanceAspect, removePerInstanceJoinpointAspect, resolveAnnotation, resolveAnnotation, resolveAnnotation, resolveAnnotation, resolveAnnotation, resolveConstructionPointcut, resolveConstructorPointcut, resolveMethodPointcut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

protected StatefulCache cache
Constructor Detail

StatefulContainer

public StatefulContainer(ClassLoader cl,
                         String beanClassName,
                         String ejbName,
                         org.jboss.aop.AspectManager manager,
                         Hashtable ctxProperties)
Method Detail

start

public void start()
           throws Exception
Specified by:
start in interface Container
Overrides:
start in class SessionContainer
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface Container
Overrides:
stop in class SessionContainer
Throws:
Exception

getCache

public StatefulCache getCache()

localInvoke

public Object localInvoke(Object id,
                          Method method,
                          Object[] args)
                   throws Throwable
Performs a synchronous local invocation

Throws:
Throwable

localInvoke

public Object localInvoke(Object id,
                          Method method,
                          Object[] args,
                          org.jboss.aspects.asynch.FutureHolder provider)
                   throws Throwable
Performs a synchronous or asynchronous local invocation

Parameters:
provider - If null a synchronous invocation, otherwise an asynchronous
Throws:
Throwable

createSession

public Object createSession()
Create a stateful bean and return its oid.

Returns:

createSession

public Object createSession(Class[] initTypes,
                            Object[] initValues)
Create a stateful bean and return its oid.

Returns:

dynamicInvoke

public org.jboss.aop.joinpoint.InvocationResponse dynamicInvoke(Object target,
                                                                org.jboss.aop.joinpoint.Invocation invocation)
                                                         throws Throwable
This should be a remote invocation call

Overrides:
dynamicInvoke in class org.jboss.aop.Advisor
Parameters:
invocation -
Returns:
Throws:
Throwable

getTimerService

public javax.ejb.TimerService getTimerService()

invokePostActivate

public void invokePostActivate(Object bean)
Specified by:
invokePostActivate in interface Container
Overrides:
invokePostActivate in class EJBContainer

invokePrePassivate

public void invokePrePassivate(Object bean)
Specified by:
invokePrePassivate in interface Container
Overrides:
invokePrePassivate in class EJBContainer

getHandledCallbacks

protected Class[] getHandledCallbacks()
Overrides:
getHandledCallbacks in class EJBContainer

invokeInit

public void invokeInit(Object bean)
Specified by:
invokeInit in interface Container
Overrides:
invokeInit in class EJBContainer

invokeInit

public void invokeInit(Object bean,
                       Class[] initParameterTypes,
                       Object[] initParameterValues)
Specified by:
invokeInit in interface Container
Overrides:
invokeInit in class EJBContainer

getInitParameters

protected Object[] getInitParameters(Method method,
                                     Class[] initParameterTypes,
                                     Object[] initParameterValues)

invokeHomeMethod

protected org.jboss.aop.joinpoint.InvocationResponse invokeHomeMethod(org.jboss.aop.MethodInfo info,
                                                                      StatefulRemoteInvocation statefulInvocation)
                                                               throws Throwable
Throws:
Throwable

invokeHandleMethod

protected org.jboss.aop.joinpoint.InvocationResponse invokeHandleMethod(org.jboss.aop.MethodInfo info,
                                                                        StatefulRemoteInvocation statefulInvocation)
                                                                 throws Throwable
Throws:
Throwable

invokeEJBObjectMethod

protected org.jboss.aop.joinpoint.InvocationResponse invokeEJBObjectMethod(org.jboss.aop.MethodInfo info,
                                                                           StatefulRemoteInvocation statefulInvocation)
                                                                    throws Throwable
Throws:
Throwable


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.