|
||||||||||
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
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.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 | |
---|---|
ServiceContainer(MBeanServer server,
ClassLoader cl,
String beanClassName,
String ejbName,
org.jboss.aop.Domain domain,
Hashtable ctxProperties,
Ejb3Deployment deployment,
org.jboss.metadata.ejb.jboss.JBossServiceBeanMetaData beanMetaData)
|
Method Summary | |
---|---|
void |
callTimeout(javax.ejb.Timer timer)
|
void |
create()
|
BeanContext<?> |
createBeanContext()
Create a bean context for use in a pool. |
Object |
createLocalProxy(Object id,
org.jboss.ejb3.annotation.LocalBinding binding)
|
Object |
createRemoteProxy(Object id,
org.jboss.ejb3.annotation.RemoteBinding binding)
Deprecated. |
Serializable |
createSession(Class<?>[] initTypes,
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 |
Object |
getAttribute(String attribute)
|
AttributeList |
getAttributes(String[] attributes)
|
protected String |
getJndiRegistrarBindName()
Returns the name under which the JNDI Registrar for this container is bound |
Object |
getMBean()
|
MBeanInfo |
getMBeanInfo()
|
Object |
getSingleton()
|
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 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. |
Object |
invoke(Object proxy,
org.jboss.ejb3.common.lang.SerializableMethod method,
Object[] args)
Deprecated. To be removed alongside InvokableContext |
Object |
invoke(Serializable session,
Class<?> invokedBusinessInterface,
Method method,
Object[] args)
Invokes upon the specified method, using the specified arguments |
Object |
invoke(String actionName,
Object[] params,
String[] signature)
|
void |
invokePostConstruct(BeanContext beanContext,
Object[] params)
|
void |
invokePreDestroy(BeanContext beanContext)
|
Object |
localHomeInvoke(Method method,
Object[] args)
|
Object |
localInvoke(Method method,
Object[] args)
Performs a synchronous or asynchronous local invocation |
Object |
localInvoke(Object id,
Method method,
Object[] args)
|
protected void |
lockedStart()
|
protected void |
lockedStop()
|
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 List<Class<?>> |
resolveBusinessInterfaces()
|
void |
setAttribute(Attribute attribute)
|
AttributeList |
setAttributes(AttributeList attributes)
|
void |
setTimerServiceFactory(org.jboss.ejb3.timerservice.spi.TimerServiceFactory factory)
|
Methods inherited from class org.jboss.ejb3.session.SessionContainer |
---|
constructProperNoSuchEjbException, createSession, destroySession, getClusterFamilies, getJndiRegistrar, getMetaData, getProxyFactory, getProxyFactory, getProxyFactory, getRemoteBinding, getSessionFactory, getVirtualMethods, hasJNDIBinding, invoke, invokeEJBObjectMethod, isSessionAware, marshallException, marshallResponse, registerWithAopDispatcher, setJndiRegistrar |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServiceContainer(MBeanServer server, ClassLoader cl, String beanClassName, String ejbName, org.jboss.aop.Domain domain, Hashtable ctxProperties, Ejb3Deployment deployment, org.jboss.metadata.ejb.jboss.JBossServiceBeanMetaData beanMetaData) throws ClassNotFoundException
ClassNotFoundException
Method Detail |
---|
public void callTimeout(javax.ejb.Timer timer) throws Exception
callTimeout
in interface org.jboss.ejb3.timerservice.spi.TimedObjectInvoker
Exception
public BeanContext<?> createBeanContext()
Container
createBeanContext
in interface Container
createBeanContext
in class EJBContainer
public Serializable createSession(Class<?>[] initTypes, Object[] initArgs)
SessionContainer
createSession
in class SessionContainer
initTypes
- the parameter types used by the home's create methodinitArgs
- the arguments for the home's create method
protected String getJndiRegistrarBindName()
getJndiRegistrarBindName
in class SessionContainer
public Object getMBean()
getMBean
in interface Container
public Object getSingleton()
public void create() throws Exception
create
in interface Container
create
in class EJBContainer
Exception
public void instantiated()
EJBContainer
instantiated
in class SessionContainer
protected List<Class<?>> resolveBusinessInterfaces()
resolveBusinessInterfaces
in class SessionContainer
protected void reinitialize()
reinitialize
in class EJBContainer
protected void lockedStart() throws Exception
lockedStart
in class SessionContainer
Exception
protected void lockedStop() throws Exception
lockedStop
in class SessionContainer
Exception
public void destroy() throws Exception
destroy
in interface Container
destroy
in class EJBContainer
Exception
public void initializePool() throws Exception
initializePool
in class EJBContainer
Exception
public javax.ejb.TimerService getTimerService()
getTimerService
in interface Container
public javax.ejb.TimerService getTimerService(Object pKey)
Container
getTimerService
in interface Container
public void invokePostConstruct(BeanContext beanContext, Object[] params)
invokePostConstruct
in interface Container
invokePostConstruct
in class EJBContainer
public void invokePreDestroy(BeanContext beanContext)
invokePreDestroy
in interface Container
invokePreDestroy
in class EJBContainer
public Object localInvoke(Object id, Method method, Object[] args) throws Throwable
localInvoke
in class SessionContainer
Throwable
public Object localHomeInvoke(Method method, Object[] args) throws Throwable
localHomeInvoke
in class SessionContainer
Throwable
public Object localInvoke(Method method, Object[] args) throws Throwable
provider
- If null a synchronous invocation, otherwise an asynchronous
Throwable
public org.jboss.aop.joinpoint.InvocationResponse dynamicInvoke(org.jboss.aop.joinpoint.Invocation invocation) throws Throwable
SessionContainer
dynamicInvoke
in interface org.jboss.ejb3.proxy.spi.container.InvokableContext
dynamicInvoke
in class SessionContainer
Throwable
protected void initBeanContext() throws RuntimeException
RuntimeException
public BeanContext<?> peekContext()
peekContext
in interface Container
peekContext
in class EJBContainer
protected StatefulContainerInvocation populateInvocation(StatefulContainerInvocation invocation)
SessionContainer
populateInvocation
in class SessionContainer
protected void injectDependencies(BeanContext ctx)
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
AttributeNotFoundException
MBeanException
ReflectionException
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
public AttributeList getAttributes(String[] attributes)
public AttributeList setAttributes(AttributeList attributes)
@Deprecated public Object invoke(Object proxy, org.jboss.ejb3.common.lang.SerializableMethod method, Object[] args) throws Throwable
InvokableContext
invoke
in interface org.jboss.ejb3.proxy.spi.container.InvokableContext
Throwable
InvokableContext
public Object invoke(Serializable session, Class<?> invokedBusinessInterface, Method method, Object[] args) throws Throwable
invoke
in interface org.jboss.ejb3.endpoint.Endpoint
Throwable
Endpoint.invoke(java.io.Serializable, java.lang.Class, java.lang.reflect.Method, java.lang.Object[])
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
MBeanException
ReflectionException
public MBeanInfo getMBeanInfo()
public Object createLocalProxy(Object id, org.jboss.ejb3.annotation.LocalBinding binding) throws Exception
Exception
@Deprecated public Object createRemoteProxy(Object id, org.jboss.ejb3.annotation.RemoteBinding binding) throws Exception
Exception
public String getTimedObjectId()
getTimedObjectId
in interface org.jboss.ejb3.timerservice.spi.TimedObjectInvoker
protected void removeHandle(javax.ejb.Handle handle)
removeHandle
in class SessionContainer
public void setTimerServiceFactory(org.jboss.ejb3.timerservice.spi.TimerServiceFactory factory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |