org.jboss.ejb3.stateless
Class StatelessContainer

java.lang.Object
  extended by org.jboss.ejb3.EJBContainer
      extended by org.jboss.ejb3.session.SessionContainer
          extended by org.jboss.ejb3.session.SessionSpecContainer
              extended by org.jboss.ejb3.stateless.StatelessContainer
All Implemented Interfaces:
Container, org.jboss.ejb3.endpoint.Endpoint, org.jboss.ejb3.interceptors.direct.IndirectContainer<EJBContainer,org.jboss.ejb3.interceptors.direct.DirectContainer<EJBContainer>>, JavaEEComponent, org.jboss.ejb3.proxy.spi.container.InvokableContext, org.jboss.ejb3.timerservice.spi.TimedObjectInvoker, EJBInjectionContainer, ExtendedInjectionContainer, InjectionContainer, org.jboss.wsf.spi.invocation.integration.ServiceEndpointContainer

public class StatelessContainer
extends SessionSpecContainer
implements org.jboss.ejb3.timerservice.spi.TimedObjectInvoker, org.jboss.wsf.spi.invocation.integration.ServiceEndpointContainer, org.jboss.ejb3.proxy.spi.container.InvokableContext

Comment

Version:
$Revision: 87529 $
Author:
Bill Burke

Field Summary
protected  javax.ejb.TimerService timerService
           
 
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
StatelessContainer(ClassLoader cl, String beanClassName, String ejbName, org.jboss.aop.Domain domain, Hashtable ctxProperties, Ejb3Deployment deployment, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData beanMetaData)
           
 
Method Summary
 void callTimeout(javax.ejb.Timer timer)
           
 BeanContext<?> createBeanContext()
          Create a bean context for use in a pool.
 Object createProxyLocalEjb21()
           
 Object createProxyLocalEjb21(org.jboss.ejb3.annotation.LocalBinding binding)
          Create a local proxy (EJBLocalObject) for an enterprise bean with the specified LocalBinding
 Object createProxyRemoteEjb21()
           
 Object createProxyRemoteEjb21(org.jboss.ejb3.annotation.RemoteBinding binding)
           
 Serializable createSession(Class<?>[] initTypes, Object[] initArgs)
          Create session to an EJB bean.
 org.jboss.aop.joinpoint.InvocationResponse dynamicInvoke(org.jboss.aop.joinpoint.Invocation invocation)
          Remote Invocation entry point, as delegated from InvokableContextClassProxyHack (Remoting Dispatcher)
<T> T
getBusinessObject(BeanContext<?> ctx, Class<T> intf)
           
 String getContainerName()
           
protected  String getJndiRegistrarBindName()
          Returns the name under which the JNDI Registrar for this container is bound
 Object getMBean()
           
 Class getServiceImplementationClass()
          WS integration
 String getTimedObjectId()
           
 javax.ejb.TimerService getTimerService()
           
 javax.ejb.TimerService getTimerService(Object pKey)
          This method is called by EJBTimerServiceImpl to re-establish a persistent timer.
protected  Object invokeEJBObjectMethod(org.jboss.aop.MethodInfo info, org.jboss.aop.joinpoint.MethodInvocation invocation)
           
 Object invokeEndpoint(Method method, Object[] args, org.jboss.wsf.spi.invocation.integration.InvocationContextCallback invCtxCallback)
          WS Integration
protected  Object invokeHomeMethod(org.jboss.aop.MethodInfo info, org.jboss.aop.joinpoint.MethodInvocation invocation)
           
 boolean isClustered()
           
 Object localHomeInvoke(Method method, Object[] args)
           
 Object localInvoke(Method method, Object[] args)
          Performs a synchronous local invocation
 Object localInvoke(Method method, Object[] args, BeanContextLifecycleCallback<StatelessBeanContext> callback)
           
 Object localInvoke(Object id, Method method, Object[] args)
           
protected  void lockedStart()
          Lifecycle Start
protected  void lockedStop()
          Lifecycle Stop
protected  void removeHandle(javax.ejb.Handle handle)
           
 void setTimerServiceFactory(org.jboss.ejb3.timerservice.spi.TimerServiceFactory factory)
           
 
Methods inherited from class org.jboss.ejb3.session.SessionSpecContainer
getInvokedBusinessInterface, invoke, invoke, invoke, invokeHomeCreate, isEJBObjectMethod, isEjbObjectMethod, isHandleMethod, isHandleMethod, isHomeMethod, isHomeMethod
 
Methods inherited from class org.jboss.ejb3.session.SessionContainer
constructProperNoSuchEjbException, createSession, destroySession, getClusterFamilies, getJndiRegistrar, getMetaData, getProxyFactory, getProxyFactory, getProxyFactory, getRemoteBinding, getSessionFactory, getVirtualMethods, hasJNDIBinding, instantiated, invoke, invokeEJBObjectMethod, isSessionAware, marshallException, marshallResponse, populateInvocation, registerWithAopDispatcher, resolveBusinessInterfaces, setJndiRegistrar
 
Methods inherited from class org.jboss.ejb3.EJBContainer
canResolveEJB, checkForDuplicateLocalAndRemoteInterfaces, construct, create, createInterceptor, createObjectName, createObjectName, destroy, destroyBeanContext, findPartitionName, getAdvisor, getAnnotation, getAnnotation, getAnnotation, getAnnotation, getAnnotation, getAnnotation, getAnnotations, getAssemblyDescriptor, getBeanClass, getBeanClassName, getBeanContainer, getBusinessInterfaces, getCachedConnectionManager, getClassloader, getClazz, getDependencyPolicy, getDeployment, getDeploymentDescriptorType, getDeploymentPropertyListString, getDeploymentQualifiedName, getDeploymentUnit, getEJBContainer, getEjbJndiName, getEjbJndiName, getEjbName, getEnc, getEncInjections, getEncInjectors, getEnvironmentRefGroup, getHandledCallbacks, getIdentifier, getInitialContext, getInitialContextProperties, getInjectors, getInterceptorRepository, getInvocationLock, getInvokedBusinessInterface, getInvokedInterface, getInvokeStats, getJaccContextId, getMethodInfo, getModule, getName, getNonBridgeMethod, getObjectName, getPartitionName, getPool, getRootFile, getSecurityManager, getTimeoutCallback, getXml, initializePool, injectBeanContext, invokeCallback, invokeInit, invokePostActivate, invokePostConstruct, invokePostConstruct, invokePreDestroy, invokePrePassivate, isAnnotationPresent, isBusinessMethod, peekContext, popContext, popEnc, processMetadata, pushContext, pushEnc, reinitialize, resolveAnnotation, resolveAnnotation, resolveAnnotation, resolveAnnotation, resolveEJB, resolveEjbContainer, resolveEjbContainer, resolveInjectors, resolveMessageDestination, resolvePersistenceUnitSupplier, setAssemblyDescriptor, setCachedConnectionManager, setDirectContainer, setJaccContextId, setTransactionManager, start, stop, toString
 
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.InvokableContext
invoke
 

Field Detail

timerService

protected javax.ejb.TimerService timerService
Constructor Detail

StatelessContainer

public StatelessContainer(ClassLoader cl,
                          String beanClassName,
                          String ejbName,
                          org.jboss.aop.Domain domain,
                          Hashtable ctxProperties,
                          Ejb3Deployment deployment,
                          org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData beanMetaData)
                   throws ClassNotFoundException
Throws:
ClassNotFoundException
Method Detail

createBeanContext

public BeanContext<?> createBeanContext()
Description copied from interface: Container
Create a bean context for use in a pool.

Specified by:
createBeanContext in interface Container
Specified by:
createBeanContext in class EJBContainer
Returns:
a ready to use bean context

createProxyLocalEjb21

public Object createProxyLocalEjb21()
                             throws Exception
Throws:
Exception

createProxyLocalEjb21

public Object createProxyLocalEjb21(org.jboss.ejb3.annotation.LocalBinding binding)
                             throws Exception
Create a local proxy (EJBLocalObject) for an enterprise bean with the specified LocalBinding

Parameters:
id -
Returns:
Throws:
Exception

createProxyRemoteEjb21

public Object createProxyRemoteEjb21()
                              throws Exception
Throws:
Exception

createProxyRemoteEjb21

public Object createProxyRemoteEjb21(org.jboss.ejb3.annotation.RemoteBinding binding)
                              throws Exception
Throws:
Exception

createSession

public Serializable createSession(Class<?>[] initTypes,
                                  Object[] initArgs)
Description copied from class: SessionContainer
Create session to an EJB bean.

Specified by:
createSession in class SessionContainer
Parameters:
initTypes - the parameter types used by the home's create method
initArgs - the arguments for the home's create method
Returns:
the identifier of the session

isClustered

public boolean isClustered()
Specified by:
isClustered in interface Container
Overrides:
isClustered in class EJBContainer

getMBean

public Object getMBean()
Specified by:
getMBean in interface Container

lockedStart

protected void lockedStart()
                    throws Exception
Description copied from class: SessionSpecContainer
Lifecycle Start

Overrides:
lockedStart in class SessionSpecContainer
Throws:
Exception

lockedStop

protected void lockedStop()
                   throws Exception
Description copied from class: SessionSpecContainer
Lifecycle Stop

Overrides:
lockedStop in class SessionSpecContainer
Throws:
Exception

getTimerService

public javax.ejb.TimerService getTimerService()
Specified by:
getTimerService in interface Container

getTimerService

public javax.ejb.TimerService getTimerService(Object pKey)
Description copied from interface: Container
This method is called by EJBTimerServiceImpl to re-establish a persistent timer.

Specified by:
getTimerService in interface Container

callTimeout

public void callTimeout(javax.ejb.Timer timer)
                 throws Exception
Specified by:
callTimeout in interface org.jboss.ejb3.timerservice.spi.TimedObjectInvoker
Throws:
Exception

localInvoke

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

Throws:
Throwable

localInvoke

public Object localInvoke(Object id,
                          Method method,
                          Object[] args)
                   throws Throwable
Specified by:
localInvoke in class SessionContainer
Throws:
Throwable

localInvoke

public Object localInvoke(Method method,
                          Object[] args,
                          BeanContextLifecycleCallback<StatelessBeanContext> callback)
                   throws Throwable
Throws:
Throwable

dynamicInvoke

public org.jboss.aop.joinpoint.InvocationResponse dynamicInvoke(org.jboss.aop.joinpoint.Invocation invocation)
                                                         throws Throwable
Remote Invocation entry point, as delegated from InvokableContextClassProxyHack (Remoting Dispatcher)

Specified by:
dynamicInvoke in interface org.jboss.ejb3.proxy.spi.container.InvokableContext
Specified by:
dynamicInvoke in class SessionContainer
Throws:
Throwable

invokeEJBObjectMethod

protected Object invokeEJBObjectMethod(org.jboss.aop.MethodInfo info,
                                       org.jboss.aop.joinpoint.MethodInvocation invocation)
                                throws Throwable
Throws:
Throwable

localHomeInvoke

public Object localHomeInvoke(Method method,
                              Object[] args)
                       throws Throwable
Specified by:
localHomeInvoke in class SessionContainer
Throws:
Throwable

invokeHomeMethod

protected Object invokeHomeMethod(org.jboss.aop.MethodInfo info,
                                  org.jboss.aop.joinpoint.MethodInvocation invocation)
                           throws Throwable
Throws:
Throwable

getBusinessObject

public <T> T getBusinessObject(BeanContext<?> ctx,
                               Class<T> intf)
Overrides:
getBusinessObject in class EJBContainer

removeHandle

protected void removeHandle(javax.ejb.Handle handle)
Specified by:
removeHandle in class SessionContainer

getServiceImplementationClass

public Class getServiceImplementationClass()
WS integration

Specified by:
getServiceImplementationClass in interface org.jboss.wsf.spi.invocation.integration.ServiceEndpointContainer
Returns:

invokeEndpoint

public Object invokeEndpoint(Method method,
                             Object[] args,
                             org.jboss.wsf.spi.invocation.integration.InvocationContextCallback invCtxCallback)
                      throws Throwable
WS Integration

Specified by:
invokeEndpoint in interface org.jboss.wsf.spi.invocation.integration.ServiceEndpointContainer
Parameters:
method -
args -
invCtxCallback -
Returns:
Throws:
Throwable

getContainerName

public String getContainerName()

getJndiRegistrarBindName

protected String getJndiRegistrarBindName()
Returns the name under which the JNDI Registrar for this container is bound

Specified by:
getJndiRegistrarBindName in class SessionContainer
Returns:

getTimedObjectId

public String getTimedObjectId()
Specified by:
getTimedObjectId in interface org.jboss.ejb3.timerservice.spi.TimedObjectInvoker

setTimerServiceFactory

public void setTimerServiceFactory(org.jboss.ejb3.timerservice.spi.TimerServiceFactory factory)


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.