|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--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 ContainerFactory 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.
ContainerFactory
Field Summary | |
protected Application |
application
|
protected java.lang.Class |
beanClass
|
protected java.lang.ClassLoader |
classLoader
|
protected java.lang.ClassLoader |
localClassLoader
|
protected BeanMetaData |
metaData
|
protected org.jboss.security.RealmMapping |
rm
|
protected java.lang.Object |
securityProxy
The custom security proxy used by the SecurityInterceptor |
protected org.jboss.security.EJBSecurityManager |
sm
|
protected javax.transaction.TransactionManager |
tm
|
Constructor Summary | |
Container()
|
Method Summary | |
abstract void |
addInterceptor(Interceptor in)
|
void |
destroy()
A default implementation of destroying the container service (no-op). |
Application |
getApplication()
Returns the application for this container. |
java.lang.Class |
getBeanClass()
Returns the bean class instance of this container. |
BeanMetaData |
getBeanMetaData()
Returns the metadata of this container. |
java.lang.ClassLoader |
getClassLoader()
Returns the classloader for this container. |
java.lang.ClassLoader |
getLocalClassLoader()
Returns the local classloader for this container. |
java.util.Set |
getMethodPermissions(java.lang.reflect.Method m,
boolean home)
Returns the permissions for a method. |
org.jboss.security.RealmMapping |
getRealmMapping()
|
org.jboss.security.EJBSecurityManager |
getSecurityManager()
|
java.lang.Object |
getSecurityProxy()
|
javax.transaction.TransactionManager |
getTransactionManager()
Returns this container's transaction manager. |
void |
init()
The ContainerFactory calls this method. |
abstract java.lang.Object |
invoke(MethodInvocation mi)
This method is called by the ContainerInvoker when a method call comes in on an EJBObject. |
abstract java.lang.Object |
invokeHome(MethodInvocation mi)
This method is called by the ContainerInvoker when a method call comes in on the Home object. |
void |
setApplication(Application app)
Sets the application deployment unit for this container. |
void |
setBeanMetaData(BeanMetaData metaData)
Sets the meta data for this container. |
void |
setClassLoader(java.lang.ClassLoader cl)
Sets the class loader for this container. |
void |
setLocalClassLoader(java.lang.ClassLoader cl)
Sets the local class loader for this container. |
void |
setRealmMapping(org.jboss.security.RealmMapping rm)
|
void |
setSecurityManager(org.jboss.security.EJBSecurityManager sm)
|
void |
setSecurityProxy(java.lang.Object proxy)
|
void |
setTransactionManager(javax.transaction.TransactionManager tm)
Sets a transaction manager for this container. |
void |
start()
A default implementation of starting the container service (no-op). |
void |
stop()
A default implementation of stopping the container service (no-op). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Application application
protected java.lang.ClassLoader localClassLoader
protected java.lang.ClassLoader classLoader
protected BeanMetaData metaData
protected java.lang.Class beanClass
protected javax.transaction.TransactionManager tm
protected org.jboss.security.EJBSecurityManager sm
protected org.jboss.security.RealmMapping rm
protected java.lang.Object securityProxy
Constructor Detail |
public Container()
Method Detail |
public void setTransactionManager(javax.transaction.TransactionManager tm)
tm
- TransactionManager
public javax.transaction.TransactionManager getTransactionManager()
public void setSecurityManager(org.jboss.security.EJBSecurityManager sm)
public org.jboss.security.EJBSecurityManager getSecurityManager()
public void setRealmMapping(org.jboss.security.RealmMapping rm)
public org.jboss.security.RealmMapping getRealmMapping()
public void setSecurityProxy(java.lang.Object proxy)
public java.lang.Object getSecurityProxy()
public void setApplication(Application app)
app
- application for this containerpublic Application getApplication()
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 void setBeanMetaData(BeanMetaData metaData)
metaData
- public BeanMetaData getBeanMetaData()
public java.util.Set getMethodPermissions(java.lang.reflect.Method m, boolean home)
public java.lang.Class getBeanClass()
public void init() throws java.lang.Exception
java.lang.Exception
- if loading the bean class failed (ClassNotFoundException)
or setting up "java:" naming environment failed (DeploymentException)public void start() throws java.lang.Exception
java.lang.Exception
- an exception that occured during startpublic void stop()
public void destroy()
public abstract java.lang.Object invokeHome(MethodInvocation mi) throws java.lang.Exception
mi
- the object holding all info about this invocationjava.lang.Exception
- public abstract java.lang.Object invoke(MethodInvocation mi) throws java.lang.Exception
id
- the id of the object being invoked. May be null if statelessmethod
- the method being invokedargs
- the parametersjava.lang.Exception
- public abstract void addInterceptor(Interceptor in)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |