|
|||||||||
| 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.TimerServiceContainer
org.jboss.ejb3.session.SessionContainer
org.jboss.ejb3.service.ServiceContainer
public class ServiceContainer
| Field Summary |
|---|
| Fields inherited from class org.jboss.ejb3.session.SessionContainer |
|---|
proxyDeployer |
| Fields inherited from class org.jboss.ejb3.TimerServiceContainer |
|---|
timerService |
| Fields inherited from class org.jboss.ejb3.EJBContainer |
|---|
assembly, beanClassName, classloader, ejbName, enc, encFactory, encInjections, encInjectors, ENTITY_MANAGER_FACTORY, initialContextProperties, injectors, invokeStats, MANAGED_ENTITY_MANAGER_FACTORY, metadataBasedAnnotationRepo, objectName, pool, reinitialize, xml |
| Fields inherited from interface org.jboss.ejb3.Container |
|---|
ENC_CTX_NAME |
| Constructor Summary | |
|---|---|
ServiceContainer(javax.management.MBeanServer server,
java.lang.ClassLoader cl,
java.lang.String beanClassName,
java.lang.String ejbName,
org.jboss.aop.Domain domain,
java.util.Hashtable ctxProperties,
Ejb3Deployment deployment,
org.jboss.metadata.ejb.jboss.JBossServiceBeanMetaData beanMetaData)
|
|
| Method Summary | |
|---|---|
void |
callTimeout(javax.ejb.Timer timer)
|
void |
create()
Creates a TimerService for this container. |
BeanContext<?> |
createBeanContext()
Create a bean context for use in a pool. |
java.lang.Object |
createLocalProxy(java.lang.Object id,
org.jboss.ejb3.annotation.LocalBinding binding)
|
java.lang.Object |
createRemoteProxy(java.lang.Object id,
org.jboss.ejb3.annotation.RemoteBinding binding)
Deprecated. |
java.io.Serializable |
createSession(java.lang.Class<?>[] initTypes,
java.lang.Object[] initArgs)
Create session to an EJB bean. |
void |
destroy()
|
org.jboss.aop.joinpoint.InvocationResponse |
dynamicInvoke(org.jboss.aop.joinpoint.Invocation invocation)
Entry point for remoting-based invocations via InvokableContextClassProxyHack |
java.lang.Object |
getAttribute(java.lang.String attribute)
|
javax.management.AttributeList |
getAttributes(java.lang.String[] attributes)
|
protected java.lang.String |
getJndiRegistrarBindName()
Returns the name under which the JNDI Registrar for this container is bound |
java.lang.Object |
getMBean()
|
javax.management.MBeanInfo |
getMBeanInfo()
|
java.lang.Object |
getSingleton()
|
java.lang.String |
getTimedObjectId()
|
protected org.jboss.ejb3.timerservice.spi.TimedObjectInvoker |
getTimedObjectInvoker()
Returns the TimedObjectInvoker which will be used by the
timer implementations to invoke the timeout method (annotated with Timeout
or specified in deployment descriptor) on the bean. |
protected void |
initBeanContext()
|
void |
initializePool()
|
protected void |
injectDependencies(BeanContext ctx)
|
void |
instantiated()
After XML processing has been done this allows the container to further initialize the meta data. |
java.lang.Object |
invoke(java.lang.Object proxy,
org.jboss.ejb3.common.lang.SerializableMethod method,
java.lang.Object[] args)
Deprecated. To be removed alongside InvokableContext |
java.lang.Object |
invoke(java.io.Serializable session,
java.lang.Class<?> invokedBusinessInterface,
java.lang.reflect.Method method,
java.lang.Object[] args)
Invokes upon the specified method, using the specified arguments |
java.lang.Object |
invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
|
java.lang.Object |
localHomeInvoke(java.lang.reflect.Method method,
java.lang.Object[] args)
|
java.lang.Object |
localInvoke(java.lang.reflect.Method method,
java.lang.Object[] args)
Performs a synchronous or asynchronous local invocation |
java.lang.Object |
localInvoke(java.lang.Object id,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
protected void |
lockedStart()
|
protected void |
lockedStop()
Suspends the TimerService associated with this container. |
BeanContext<?> |
peekContext()
|
protected StatefulContainerInvocation |
populateInvocation(StatefulContainerInvocation invocation)
Allow a container sub class to supplement an invocation. |
protected void |
reinitialize()
|
protected void |
removeHandle(javax.ejb.Handle handle)
|
protected java.util.List<java.lang.Class<?>> |
resolveBusinessInterfaces()
|
void |
setAttribute(javax.management.Attribute attribute)
|
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes)
|
void |
start()
This should have been final, but ServiceContainer wants to butt in. |
void |
stop()
This should have been final, but ServiceContainer wants to butt in. |
| Methods inherited from class org.jboss.ejb3.TimerServiceContainer |
|---|
afterStart, getTimerService, getTimerService, setTimerServiceFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.ejb3.context.spi.BeanManager |
|---|
getEJBHome, getEJBLocalHome, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, lookup, setRollbackOnly |
| Constructor Detail |
|---|
public ServiceContainer(javax.management.MBeanServer server,
java.lang.ClassLoader cl,
java.lang.String beanClassName,
java.lang.String ejbName,
org.jboss.aop.Domain domain,
java.util.Hashtable ctxProperties,
Ejb3Deployment deployment,
org.jboss.metadata.ejb.jboss.JBossServiceBeanMetaData beanMetaData)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException| Method Detail |
|---|
public void callTimeout(javax.ejb.Timer timer)
throws java.lang.Exception
callTimeout in interface org.jboss.ejb3.timerservice.spi.TimedObjectInvokerjava.lang.Exceptionpublic BeanContext<?> createBeanContext()
Container
createBeanContext in interface ContainercreateBeanContext in class EJBContainer
public java.io.Serializable createSession(java.lang.Class<?>[] initTypes,
java.lang.Object[] initArgs)
SessionContainer
createSession in class SessionContainerinitTypes - the parameter types used by the home's create methodinitArgs - the arguments for the home's create method
protected java.lang.String getJndiRegistrarBindName()
getJndiRegistrarBindName in class SessionContainerpublic java.lang.Object getMBean()
getMBean in interface Containerpublic java.lang.Object getSingleton()
public void create()
throws java.lang.Exception
TimerServiceContainerTimerService for this container.
TimerService creation is skipped for stateful session beans, since
stateful session beans do not support timerservice
create in interface Containercreate in class TimerServiceContainerjava.lang.ExceptionEJBContainer.create()public void instantiated()
EJBContainer
instantiated in class SessionContainerprotected java.util.List<java.lang.Class<?>> resolveBusinessInterfaces()
resolveBusinessInterfaces in class SessionContainerprotected void reinitialize()
reinitialize in class EJBContainer
protected void lockedStart()
throws java.lang.Exception
lockedStart in class SessionContainerjava.lang.Exception
protected void lockedStop()
throws java.lang.Exception
TimerServiceContainerTimerService associated with this container.
This method skips timerservice suspension of stateful session beans
lockedStop in class SessionContainerjava.lang.ExceptionEJBContainer.lockedStop()
public void destroy()
throws java.lang.Exception
destroy in interface Containerdestroy in class EJBContainerjava.lang.Exception
public void initializePool()
throws java.lang.Exception
initializePool in class EJBContainerjava.lang.Exception
public java.lang.Object localInvoke(java.lang.Object id,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
localInvoke in class SessionContainerjava.lang.Throwable
public java.lang.Object localHomeInvoke(java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
localHomeInvoke in class SessionContainerjava.lang.Throwable
public java.lang.Object localInvoke(java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
provider - If null a synchronous invocation, otherwise an asynchronous
java.lang.Throwable
public org.jboss.aop.joinpoint.InvocationResponse dynamicInvoke(org.jboss.aop.joinpoint.Invocation invocation)
throws java.lang.Throwable
SessionContainer
dynamicInvoke in interface org.jboss.ejb3.proxy.spi.container.InvokableContextdynamicInvoke in class SessionContainerjava.lang.Throwable
protected void initBeanContext()
throws java.lang.RuntimeException
java.lang.RuntimeExceptionpublic BeanContext<?> peekContext()
peekContext in interface ContainerpeekContext in class EJBContainerprotected StatefulContainerInvocation populateInvocation(StatefulContainerInvocation invocation)
SessionContainer
populateInvocation in class SessionContainerprotected void injectDependencies(BeanContext ctx)
public java.lang.Object getAttribute(java.lang.String attribute)
throws javax.management.AttributeNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
public void setAttribute(javax.management.Attribute attribute)
throws javax.management.AttributeNotFoundException,
javax.management.InvalidAttributeValueException,
javax.management.MBeanException,
javax.management.ReflectionException
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionExceptionpublic javax.management.AttributeList getAttributes(java.lang.String[] attributes)
public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
@Deprecated
public java.lang.Object invoke(java.lang.Object proxy,
org.jboss.ejb3.common.lang.SerializableMethod method,
java.lang.Object[] args)
throws java.lang.Throwable
InvokableContext
invoke in interface org.jboss.ejb3.proxy.spi.container.InvokableContextjava.lang.ThrowableInvokableContext
public java.lang.Object invoke(java.io.Serializable session,
java.lang.Class<?> invokedBusinessInterface,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface org.jboss.ejb3.endpoint.Endpointjava.lang.ThrowableEndpoint.invoke(java.io.Serializable, java.lang.Class, java.lang.reflect.Method, java.lang.Object[])
public java.lang.Object invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
throws javax.management.MBeanException,
javax.management.ReflectionException
javax.management.MBeanException
javax.management.ReflectionExceptionpublic javax.management.MBeanInfo getMBeanInfo()
public java.lang.Object createLocalProxy(java.lang.Object id,
org.jboss.ejb3.annotation.LocalBinding binding)
throws java.lang.Exception
java.lang.Exception
@Deprecated
public java.lang.Object createRemoteProxy(java.lang.Object id,
org.jboss.ejb3.annotation.RemoteBinding binding)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getTimedObjectId()
getTimedObjectId in interface org.jboss.ejb3.timerservice.spi.TimedObjectInvokerprotected void removeHandle(javax.ejb.Handle handle)
removeHandle in class SessionContainer
public void start()
throws java.lang.Exception
EJBContainer
start in interface Containerstart in class EJBContainerjava.lang.Exception
public void stop()
throws java.lang.Exception
EJBContainer
stop in interface Containerstop in class EJBContainerjava.lang.Exceptionprotected org.jboss.ejb3.timerservice.spi.TimedObjectInvoker getTimedObjectInvoker()
TimerServiceContainerTimedObjectInvoker which will be used by the
timer implementations to invoke the timeout method (annotated with Timeout
or specified in deployment descriptor) on the bean.
getTimedObjectInvoker in class TimerServiceContainer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||