org.jboss.ejb3.session
Class SessionSpecContainer

java.lang.Object
  extended by org.jboss.ejb3.EJBContainer
      extended by org.jboss.ejb3.session.SessionContainer
          extended by org.jboss.ejb3.session.SessionSpecContainer
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, ExtendedInjectionContainer, InjectionContainer
Direct Known Subclasses:
StatefulContainer, StatelessContainer

public abstract class SessionSpecContainer
extends SessionContainer
implements org.jboss.ejb3.proxy.spi.container.InvokableContext

SessionSpecContainer A SessionContainer with support for Session Beans defined specifically by the EJB3 Specification

Version:
$Revision: $
Author:
ALR

Field Summary
protected static ThreadLocalStack<org.jboss.ejb3.common.lang.SerializableMethod> invokedMethod
          Deprecated. 
 
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
SessionSpecContainer(ClassLoader cl, String beanClassName, String ejbName, org.jboss.aop.Domain domain, Hashtable ctxProperties, Ejb3Deployment deployment, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData beanMetaData)
           
 
Method Summary
 Class<?> getInvokedBusinessInterface()
          Fulfills javax.ejb.SessionContext.getInvokedBusinessInterface() Returns the name of the invoking EJB3 Business Interface
 Object invoke(Object proxy, org.jboss.ejb3.common.lang.SerializableMethod method, Object[] args)
          Invokes the method described by the specified serializable method as called from the specified proxy, using the specified arguments
 Object invoke(Serializable session, Class<?> invokedBusinessInterface, Method method, Object[] args)
          Invokes the specified method upon the specified session, passing the specified arguments.
 Object invoke(Serializable session, org.jboss.ejb3.common.lang.SerializableMethod method, Object[] args)
          Deprecated. 
protected  Object invokeHomeCreate(Method method, Object[] args)
          Provides implementation for this bean's EJB 2.1 Home.create() method
protected  boolean isEJBObjectMethod(Method method)
          Deprecated. Use isEjbObjectMethod(SerializableMethod method)
protected  boolean isEjbObjectMethod(org.jboss.ejb3.common.lang.SerializableMethod method)
          Determines whether the specified method is an EJB2.x Local or Remote Method
protected  boolean isHandleMethod(Method method)
          Deprecated. Use isHandleMethod(SerializableMethod method)
protected  boolean isHandleMethod(org.jboss.ejb3.common.lang.SerializableMethod method)
          Determines if the specified Method is a Handle Method
protected  boolean isHomeMethod(Method method)
          Deprecated. Use isHomeMethod(SerializableMethod method) in SessionSpecContainer
protected  boolean isHomeMethod(org.jboss.ejb3.common.lang.SerializableMethod method)
          Determines whether the specified method is an EJB2.x Home Method
protected  void lockedStart()
          Lifecycle Start
protected  void lockedStop()
          Lifecycle Stop
 
Methods inherited from class org.jboss.ejb3.session.SessionContainer
constructProperNoSuchEjbException, createSession, createSession, destroySession, dynamicInvoke, getClusterFamilies, getJndiRegistrar, getJndiRegistrarBindName, getMetaData, getProxyFactory, getProxyFactory, getProxyFactory, getRemoteBinding, getSessionFactory, getVirtualMethods, hasJNDIBinding, instantiated, invoke, invokeEJBObjectMethod, isSessionAware, localHomeInvoke, localInvoke, marshallException, marshallResponse, populateInvocation, registerWithAopDispatcher, removeHandle, resolveBusinessInterfaces, setJndiRegistrar
 
Methods inherited from class org.jboss.ejb3.EJBContainer
checkForDuplicateLocalAndRemoteInterfaces, construct, create, createBeanContext, createInterceptor, createObjectName, createObjectName, destroy, destroyBeanContext, findPartitionName, getAdvisor, getAnnotation, getAnnotation, getAnnotation, getAnnotation, getAnnotation, getAnnotation, getAnnotations, getAssemblyDescriptor, getBeanClass, getBeanClassName, getBeanContainer, getBusinessInterfaces, getBusinessObject, 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, isClustered, peekContext, popContext, popEnc, processMetadata, pushContext, pushEnc, reinitialize, resolveAnnotation, resolveAnnotation, resolveAnnotation, resolveAnnotation, 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
dynamicInvoke
 
Methods inherited from interface org.jboss.ejb3.Container
getMBean, getTimerService, getTimerService
 

Field Detail

invokedMethod

@Deprecated
protected static ThreadLocalStack<org.jboss.ejb3.common.lang.SerializableMethod> invokedMethod
Deprecated. 
The method invoked upon by the client

Constructor Detail

SessionSpecContainer

public SessionSpecContainer(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

invoke

public Object invoke(Serializable session,
                     Class<?> invokedBusinessInterface,
                     Method method,
                     Object[] args)
              throws Throwable
Invokes the specified method upon the specified session, passing the specified arguments. This is required by the Endpoint interface and is the correct implementation of the ejb3-core containers looking forward.

Specified by:
invoke in interface org.jboss.ejb3.endpoint.Endpoint
Parameters:
session -
invokedBusinessInterface -
method -
args -
Throws:
Throwable
See Also:
Endpoint.invoke(java.io.Serializable, java.lang.Class, java.lang.reflect.Method, java.lang.Object[])

invoke

@Deprecated
public Object invoke(Serializable session,
                                org.jboss.ejb3.common.lang.SerializableMethod method,
                                Object[] args)
              throws Throwable
Deprecated. 

A transition method in moving from InvokableContext.invoke to Endpoint.invoke. Invokes the specified method upon the specified session, passing the specified arguments

Parameters:
session -
method -
args -
Returns:
Throws:
Throwable

invoke

public Object invoke(Object proxy,
                     org.jboss.ejb3.common.lang.SerializableMethod method,
                     Object[] args)
              throws Throwable
Invokes the method described by the specified serializable method as called from the specified proxy, using the specified arguments

Specified by:
invoke in interface org.jboss.ejb3.proxy.spi.container.InvokableContext
Parameters:
proxy - The proxy making the invocation
method - The method to be invoked
args - The arguments to the invocation
Returns:
Throws:
Throwable - A possible exception thrown by the invocation

getInvokedBusinessInterface

public Class<?> getInvokedBusinessInterface()
Fulfills javax.ejb.SessionContext.getInvokedBusinessInterface() Returns the name of the invoking EJB3 Business Interface

Returns:
See Also:
3.0 Core Specification 4.5.2 for allowable context in which this may be invoked

invokeHomeCreate

protected Object invokeHomeCreate(Method method,
                                  Object[] args)
                           throws Exception
Provides implementation for this bean's EJB 2.1 Home.create() method

Parameters:
factory -
unadvisedMethod -
args -
Returns:
Throws:
Exception

isHomeMethod

@Deprecated
protected boolean isHomeMethod(Method method)
Deprecated. Use isHomeMethod(SerializableMethod method) in SessionSpecContainer


isHomeMethod

protected boolean isHomeMethod(org.jboss.ejb3.common.lang.SerializableMethod method)
Determines whether the specified method is an EJB2.x Home Method

Parameters:
method -
Returns:

isEJBObjectMethod

@Deprecated
protected boolean isEJBObjectMethod(Method method)
Deprecated. Use isEjbObjectMethod(SerializableMethod method)

Parameters:
method -
Returns:

isEjbObjectMethod

protected boolean isEjbObjectMethod(org.jboss.ejb3.common.lang.SerializableMethod method)
Determines whether the specified method is an EJB2.x Local or Remote Method

Parameters:
method -
Returns:

isHandleMethod

@Deprecated
protected boolean isHandleMethod(Method method)
Deprecated. Use isHandleMethod(SerializableMethod method)

Parameters:
method -
Returns:

isHandleMethod

protected boolean isHandleMethod(org.jboss.ejb3.common.lang.SerializableMethod method)
Determines if the specified Method is a Handle Method

Parameters:
method -
Returns:

lockedStart

protected void lockedStart()
                    throws Exception
Lifecycle Start

Overrides:
lockedStart in class SessionContainer
Throws:
Exception

lockedStop

protected void lockedStop()
                   throws Exception
Lifecycle Stop

Overrides:
lockedStop in class SessionContainer
Throws:
Exception


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