|
||||||||||
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
public abstract class SessionContainer
Comment
Field Summary | |
---|---|
protected ProxyDeployer |
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 | |
---|---|
SessionContainer(ClassLoader cl,
String beanClassName,
String ejbName,
org.jboss.aop.Domain domain,
Hashtable ctxProperties,
Ejb3Deployment deployment,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData beanMetaData)
|
Method Summary | |
---|---|
protected Throwable |
constructProperNoSuchEjbException(javax.ejb.NoSuchEJBException original,
String invokingClassName)
Obtains the proper Exception to return to the caller in the event a "remove" call is made on a bean that doesn't exist. |
Serializable |
createSession()
|
abstract Serializable |
createSession(Class<?>[] initParameterTypes,
Object[] initParameterValues)
Create session to an EJB bean. |
protected void |
destroySession(Object id)
Destroy a created session. |
abstract org.jboss.aop.joinpoint.InvocationResponse |
dynamicInvoke(org.jboss.aop.joinpoint.Invocation invocation)
Entry point for remoting-based invocations via InvokableContextClassProxyHack |
Map<String,org.jboss.ha.framework.server.HATarget> |
getClusterFamilies()
This gets called by replicants manager interceptor factory during the initialization of the bean container (during construction of EJBContainer). |
protected org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase |
getJndiRegistrar()
Obtains the JndiSessionRegistrarBase from MC, null if not found |
protected abstract String |
getJndiRegistrarBindName()
Returns the name under which the JNDI Registrar for this container is bound |
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData |
getMetaData()
|
protected org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory |
getProxyFactory(org.jboss.ejb3.annotation.LocalBinding binding)
|
protected org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory |
getProxyFactory(org.jboss.ejb3.annotation.RemoteBinding binding)
|
protected org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory |
getProxyFactory(String proxyFactoryRegistryBindName)
Obtains the proxy factory bound at the specified registry name |
protected org.jboss.ejb3.annotation.RemoteBinding |
getRemoteBinding()
Deprecated. Non-deterministic, more than one binding may be specified for this container |
org.jboss.ejb3.endpoint.SessionFactory |
getSessionFactory()
Base implementation, assumes that this Container is not session-aware. |
List<Method> |
getVirtualMethods()
Do not call, used by BeanContainer. |
boolean |
hasJNDIBinding(String jndiName)
Checks if this session bean binds to the given JNDI name. |
void |
instantiated()
After XML processing has been done this allows the container to further initialize the meta data. |
Object |
invoke(org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory factory,
Object id,
Method method,
Object[] args)
Deprecated. Use "invoke" as defined by InvokableContext |
protected Object |
invokeEJBObjectMethod(Object id,
org.jboss.aop.MethodInfo info,
Object[] args)
|
boolean |
isSessionAware()
Designates that this Container is not session-aware. |
abstract Object |
localHomeInvoke(Method method,
Object[] args)
|
abstract Object |
localInvoke(Object id,
Method method,
Object[] args)
|
protected void |
lockedStart()
|
protected void |
lockedStop()
|
static org.jboss.aop.joinpoint.InvocationResponse |
marshallException(org.jboss.aop.joinpoint.Invocation invocation,
Throwable exception,
Map responseContext)
|
static org.jboss.aop.joinpoint.InvocationResponse |
marshallResponse(org.jboss.aop.joinpoint.Invocation invocation,
Object rtn,
Map responseContext)
|
protected StatefulContainerInvocation |
populateInvocation(StatefulContainerInvocation invocation)
Allow a container sub class to supplement an invocation. |
protected void |
registerWithAopDispatcher()
Registers this Container with Remoting / AOP Dispatcher |
protected abstract void |
removeHandle(javax.ejb.Handle handle)
|
protected List<Class<?>> |
resolveBusinessInterfaces()
|
void |
setJndiRegistrar(org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase jndiRegistrar)
|
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 |
Methods inherited from interface org.jboss.ejb3.endpoint.Endpoint |
---|
invoke |
Methods inherited from interface org.jboss.ejb3.Container |
---|
getMBean, getTimerService, getTimerService |
Field Detail |
---|
protected ProxyDeployer proxyDeployer
Constructor Detail |
---|
public SessionContainer(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 |
---|
@Deprecated protected org.jboss.ejb3.annotation.RemoteBinding getRemoteBinding()
protected org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory getProxyFactory(org.jboss.ejb3.annotation.LocalBinding binding)
protected org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory getProxyFactory(org.jboss.ejb3.annotation.RemoteBinding binding)
protected org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory getProxyFactory(String proxyFactoryRegistryBindName)
proxyFactoryRegistryBindName
-
public abstract org.jboss.aop.joinpoint.InvocationResponse dynamicInvoke(org.jboss.aop.joinpoint.Invocation invocation) throws Throwable
dynamicInvoke
in interface org.jboss.ejb3.proxy.spi.container.InvokableContext
Throwable
public org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData getMetaData()
public void instantiated()
EJBContainer
instantiated
in class EJBContainer
protected List<Class<?>> resolveBusinessInterfaces()
resolveBusinessInterfaces
in class EJBContainer
protected void lockedStart() throws Exception
lockedStart
in class EJBContainer
Exception
protected void registerWithAopDispatcher()
public Map<String,org.jboss.ha.framework.server.HATarget> getClusterFamilies()
protected void lockedStop() throws Exception
lockedStop
in class EJBContainer
Exception
public List<Method> getVirtualMethods()
EJBContainer
getVirtualMethods
in class EJBContainer
protected abstract String getJndiRegistrarBindName()
protected org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase getJndiRegistrar()
public void setJndiRegistrar(org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase jndiRegistrar)
public static org.jboss.aop.joinpoint.InvocationResponse marshallException(org.jboss.aop.joinpoint.Invocation invocation, Throwable exception, Map responseContext) throws Throwable
Throwable
public static org.jboss.aop.joinpoint.InvocationResponse marshallResponse(org.jboss.aop.joinpoint.Invocation invocation, Object rtn, Map responseContext) throws IOException
IOException
@Deprecated public Object invoke(org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactory factory, Object id, Method method, Object[] args) throws Throwable
factory
- the originating end pointid
- unique identifier (primary key), can be null for statelessmethod
- the business or home method to invokeargs
- the arguments for the methodprovider
- for asynchronous usage
Throwable
public abstract Serializable createSession(Class<?>[] initParameterTypes, Object[] initParameterValues)
initParameterTypes
- the parameter types used by the home's create methodinitParameterValues
- the arguments for the home's create method
public abstract Object localInvoke(Object id, Method method, Object[] args) throws Throwable
Throwable
public abstract Object localHomeInvoke(Method method, Object[] args) throws Throwable
Throwable
public Serializable createSession()
protected void destroySession(Object id)
id
- the identifier of the sessionpublic boolean hasJNDIBinding(String jndiName)
hasJNDIBinding
in interface InjectionContainer
hasJNDIBinding
in class EJBContainer
protected Object invokeEJBObjectMethod(Object id, org.jboss.aop.MethodInfo info, Object[] args) throws Exception
Exception
protected Throwable constructProperNoSuchEjbException(javax.ejb.NoSuchEJBException original, String invokingClassName)
original
- invokingClassName
-
protected StatefulContainerInvocation populateInvocation(StatefulContainerInvocation invocation)
invocation
-
protected abstract void removeHandle(javax.ejb.Handle handle) throws Exception
Exception
public org.jboss.ejb3.endpoint.SessionFactory getSessionFactory() throws IllegalStateException
getSessionFactory
in interface org.jboss.ejb3.endpoint.Endpoint
IllegalStateException
- If this Container is not session-awareEndpoint.getSessionFactory()
public boolean isSessionAware()
isSessionAware
in interface org.jboss.ejb3.endpoint.Endpoint
Endpoint.isSessionAware()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |