|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.ejb.Container
This is the base class for all EJB-containers in JBoss. A Container functions as the central hub of all metadata and plugins. Through this the container plugins can get hold of the other plugins and any metadata they need.
The EJBDeployer creates instances of subclasses of this class and calls the appropriate initialization methods.
A Container does not perform any significant work, but instead delegates to the plugins to provide for all kinds of algorithmic functionality.
EJBDeployer
(src) Nested Class Summary | |
protected class |
Container.AbstractContainerInterceptor (src)
The base class for container interceptors. |
Field Summary | |
static java.lang.String |
BASE_EJB_CONTAINER_NAME
|
protected java.lang.Class |
beanClass
This is the EnterpriseBean class |
protected java.lang.ClassLoader |
classLoader
This is the classloader of this container. |
protected long |
createCount
The number of create invocations that have been made |
static ObjectName (src) |
EJB_CONTAINER_QUERY_NAME
|
protected static java.lang.reflect.Method |
EJB_TIMEOUT
A reference to TimedObject.ejbTimeout(javax.ejb.Timer) . |
protected EjbModule (src) |
ejbModule
This is the application that this container is a part of |
protected static java.lang.reflect.Method |
EJBOBJECT_REMOVE
|
protected java.lang.Class |
homeInterface
This is the Home interface class |
protected InvocationStatistics (src) |
invokeStats
Time statistics for the invoke(Invocation) methods |
protected java.lang.String |
jaccContextID
The JACC context id for the container |
protected java.lang.ClassLoader |
localClassLoader
This is the local classloader of this container. |
protected java.lang.Class |
localHomeInterface
The local home interface class |
protected java.lang.Class |
localInterface
The local inteface class |
protected LocalProxyFactory (src) |
localProxyFactory
??? |
protected BeanLockManager (src) |
lockManager
This is the bean lock manager that is to be used |
protected java.util.Map |
marshalledInvocationMapping
Maps for MarshalledInvocation mapping |
protected BeanMetaData (src) |
metaData
This is the new metadata. |
static ObjectName (src) |
ORB_NAME
|
protected java.util.HashMap |
proxyFactories
HashMap |
protected java.lang.ThreadLocal |
proxyFactoryTL
The Proxy factory is set in the Invocation. |
protected java.lang.Class |
remoteInterface
This is the Remote interface class |
protected long |
removeCount
The number of create invocations that have been made |
protected RealmMapping (src) |
rm
This is the realm mapping |
protected java.lang.Object |
securityProxy
The custom security proxy used by the SecurityInterceptor |
protected AuthenticationManager (src) |
sm
This is the SecurityManager |
protected TransactionManager (src) |
tm
This is the TransactionManager |
protected java.lang.ClassLoader |
webClassLoader
The class loader for remote dynamic classloading |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
Container()
|
Method Summary | |
abstract void |
addInterceptor(Interceptor (src) in)
|
void |
addProxyFactory(java.lang.String invokerBinding,
EJBProxyFactory (src) factory)
|
java.lang.Object |
createBeanClassInstance()
Returns a new instance of the bean class or a subclass of the bean class. |
protected void |
createService()
The EJBDeployer calls this method. |
protected void |
destroyService()
A default implementation of destroying the container service (no-op). |
java.lang.Class |
getBeanClass()
Returns the bean class instance of this container. |
BeanMetaData (src) |
getBeanMetaData()
Returns the metadata of this container. |
java.lang.ClassLoader |
getClassLoader()
Returns the classloader for this container. |
long |
getCreateCount()
Gets the number of create invocations that have been made |
DeploymentInfo (src) |
getDeploymentInfo()
Gets the DeploymentInfo for this Container |
EjbModule (src) |
getEjbModule()
Gets the application deployment unit for this container. |
javax.naming.Context |
getEnvContext()
Get the components environment context |
java.lang.Class |
getHomeClass()
this actually should be called remotehome, but for interface compliance purposes we keep it like that |
InvocationStatistics (src) |
getInvokeStats()
Gets the invocation statistics collection |
java.lang.String |
getJaccContextID()
|
ObjectName (src) |
getJmxName()
Build a JMX name using the pattern jboss.j2ee:service=EJB,jndiName=[jndiName] where the [jndiName] is either the bean remote home JNDI binding, or the local home JNDI binding if the bean has no remote interfaces. |
java.lang.Class |
getLocalClass()
|
java.lang.ClassLoader |
getLocalClassLoader()
Returns the local classloader for this container. |
java.lang.Class |
getLocalHomeClass()
|
BeanLockManager (src) |
getLockManager()
|
MessageDestinationMetaData (src) |
getMessageDestination(java.lang.String link)
|
java.util.Set |
getMethodPermissions(java.lang.reflect.Method m,
InvocationType (src) iface)
Returns the permissions for a method. |
EJBProxyFactory (src) |
getProxyFactory()
|
RealmMapping (src) |
getRealmMapping()
|
java.lang.Class |
getRemoteClass()
|
long |
getRemoveCount()
Gets the number of remove invocations that have been made |
AuthenticationManager (src) |
getSecurityManager()
|
java.lang.Object |
getSecurityProxy()
|
TimerService (src) |
getTimerService(java.lang.Object pKey)
Creates the single Timer Servic for this container if not already created |
TransactionManager (src) |
getTransactionManager()
Returns this container's transaction manager. |
java.lang.ClassLoader |
getWebClassLoader()
Get the class loader for dynamic class loading via http. |
abstract java.lang.Object |
internalInvoke(Invocation (src) mi)
This method is called when a method call comes in on an EJBObject. |
abstract java.lang.Object |
internalInvokeHome(Invocation (src) mi)
This method is called when a method call comes in on the Home object. |
java.lang.Object |
invoke(Invocation (src) mi)
The detached invoker operation. |
boolean |
isCallByValue()
Whether the bean is call by value |
EJBProxyFactory (src) |
lookupProxyFactory(java.lang.String binding)
|
void |
removeTimerService(java.lang.Object pKey)
Removes Timer Servic for this container |
void |
setBeanMetaData(BeanMetaData (src) metaData)
Sets the meta data for this container. |
void |
setClassLoader(java.lang.ClassLoader cl)
Sets the class loader for this container. |
void |
setDeploymentInfo(DeploymentInfo (src) di)
Sets the DeploymentInfo of this Container |
void |
setEjbModule(EjbModule (src) app)
Sets the application deployment unit for this container. |
void |
setJaccContextID(java.lang.String id)
|
void |
setLocalClassLoader(java.lang.ClassLoader cl)
Sets the local class loader for this container. |
void |
setLockManager(BeanLockManager (src) lockManager)
|
void |
setProxyFactory(java.lang.Object factory)
|
void |
setRealmMapping(RealmMapping (src) rm)
|
void |
setSecurityManager(AuthenticationManager (src) sm)
|
void |
setSecurityProxy(java.lang.Object proxy)
|
void |
setTransactionManager(TransactionManager (src) tm)
Sets a transaction manager for this container. |
void |
setWebClassLoader(java.lang.ClassLoader webClassLoader)
Set the class loader for dynamic class loading via http. |
protected void |
startService()
A default implementation of starting the container service. |
protected void |
stopService()
A default implementation of stopping the container service (no-op). |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, destroy, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String BASE_EJB_CONTAINER_NAME
public static final ObjectName (src) ORB_NAME
public static final ObjectName (src) EJB_CONTAINER_QUERY_NAME
protected static final java.lang.reflect.Method EJBOBJECT_REMOVE
protected static final java.lang.reflect.Method EJB_TIMEOUT
TimedObject.ejbTimeout(javax.ejb.Timer)
.
protected EjbModule (src) ejbModule
protected java.lang.ClassLoader localClassLoader
protected java.lang.ClassLoader classLoader
protected java.lang.ClassLoader webClassLoader
protected BeanMetaData (src) metaData
protected java.lang.Class beanClass
protected java.lang.Class homeInterface
protected java.lang.Class remoteInterface
protected java.lang.Class localHomeInterface
protected java.lang.Class localInterface
protected TransactionManager (src) tm
protected AuthenticationManager (src) sm
protected RealmMapping (src) rm
protected java.lang.Object securityProxy
protected BeanLockManager (src) lockManager
protected LocalProxyFactory (src) localProxyFactory
protected java.util.Map marshalledInvocationMapping
protected java.util.HashMap proxyFactories
protected java.lang.ThreadLocal proxyFactoryTL
protected long createCount
protected long removeCount
protected InvocationStatistics (src) invokeStats
protected java.lang.String jaccContextID
Constructor Detail |
public Container()
Method Detail |
public java.lang.Class getLocalClass()
public java.lang.Class getLocalHomeClass()
public java.lang.Class getRemoteClass()
public java.lang.Class getHomeClass()
public boolean isCallByValue()
public void setTransactionManager(TransactionManager (src) tm)
tm
- TransactionManager
(src) public TransactionManager (src) getTransactionManager()
public void setSecurityManager(AuthenticationManager (src) sm)
public AuthenticationManager (src) getSecurityManager()
public BeanLockManager (src) getLockManager()
public void setLockManager(BeanLockManager (src) lockManager)
public void addProxyFactory(java.lang.String invokerBinding, EJBProxyFactory (src) factory)
public void setRealmMapping(RealmMapping (src) rm)
public RealmMapping (src) getRealmMapping()
public void setSecurityProxy(java.lang.Object proxy)
public java.lang.Object getSecurityProxy()
public EJBProxyFactory (src) getProxyFactory()
public void setProxyFactory(java.lang.Object factory)
public EJBProxyFactory (src) lookupProxyFactory(java.lang.String binding)
public final DeploymentInfo (src) getDeploymentInfo()
public final void setDeploymentInfo(DeploymentInfo (src) di)
di
- The new DeploymentInfo to be usedpublic void setEjbModule(EjbModule (src) app)
app
- application for this containerpublic java.lang.String getJaccContextID()
public void setJaccContextID(java.lang.String id)
public EjbModule (src) getEjbModule()
public long getCreateCount()
public long getRemoveCount()
public InvocationStatistics (src) getInvokeStats()
public void setLocalClassLoader(java.lang.ClassLoader cl)
cl
- public java.lang.ClassLoader getLocalClassLoader()
public void setClassLoader(java.lang.ClassLoader cl)
cl
- public java.lang.ClassLoader getClassLoader()
public java.lang.ClassLoader getWebClassLoader()
public void setWebClassLoader(java.lang.ClassLoader webClassLoader)
public void setBeanMetaData(BeanMetaData (src) metaData)
metaData
- public javax.naming.Context getEnvContext() throws javax.naming.NamingException
javax.naming.NamingException
public BeanMetaData (src) getBeanMetaData()
public java.util.Set getMethodPermissions(java.lang.reflect.Method m, InvocationType (src) iface)
public java.lang.Class getBeanClass()
public java.lang.Object createBeanClassInstance() throws java.lang.Exception
java.lang.Exception
Class.newInstance()
public ObjectName (src) getJmxName()
public TimerService (src) getTimerService(java.lang.Object pKey) throws java.lang.IllegalStateException
pKey
- Bean id
java.lang.IllegalStateException
- If the type of EJB is not allowed to use the timer serviceEJBContext.getTimerService()
public void removeTimerService(java.lang.Object pKey) throws java.lang.IllegalStateException
pKey
- Bean id
java.lang.IllegalStateException
- If the type of EJB is not allowed to use the timer serviceprotected void createService() throws java.lang.Exception
createService
in class ServiceMBeanSupport (src)
java.lang.Exception
- if loading the bean class failed
(ClassNotFoundException) or setting up "java:"
naming environment failed (DeploymentException)protected void startService() throws java.lang.Exception
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
- An exception that occured during startprotected void stopService() throws java.lang.Exception
stopService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void destroyService() throws java.lang.Exception
destroyService
in class ServiceMBeanSupport (src)
java.lang.Exception
public abstract java.lang.Object internalInvokeHome(Invocation (src) mi) throws java.lang.Exception
mi
- the object holding all info about this invocation
java.lang.Exception
public abstract java.lang.Object internalInvoke(Invocation (src) mi) throws java.lang.Exception
java.lang.Exception
public abstract void addInterceptor(Interceptor (src) in)
public java.lang.Object invoke(Invocation (src) mi) throws java.lang.Exception
mi
- - the method invocation context
java.lang.Exception
- on errorpublic MessageDestinationMetaData (src) getMessageDestination(java.lang.String link)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |