|
JBoss API: Class Container
org.jboss.ejb
|
Field Summary | |
protected Application |
application
|
protected java.lang.Class |
beanClass
|
protected java.lang.ClassLoader |
classLoader
|
protected java.lang.ClassLoader |
localClassLoader
|
protected LocalContainerInvoker |
localContainerInvoker
|
protected java.lang.Class |
localHomeInterface
|
protected java.lang.Class |
localInterface
|
protected BeanLockManager |
lockManager
This is the bean lock manager that is to be used |
protected Logger |
log
Instance logger. |
protected BeanMetaData |
metaData
|
protected RealmMapping |
rm
|
protected java.lang.Object |
securityProxy
The custom security proxy used by the SecurityInterceptor |
protected AuthenticationManager |
sm
|
protected javax.transaction.TransactionManager |
tm
|
Constructor Summary | |
Container()
|
Method Summary | |
abstract void |
addInterceptor(Interceptor in)
|
java.lang.Object |
createBeanClassInstance()
Returns a new instance of the bean class or a subclass of the bean class. |
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.Class |
getLocalClass()
|
java.lang.ClassLoader |
getLocalClassLoader()
Returns the local classloader for this container. |
java.lang.Class |
getLocalHomeClass()
|
BeanLockManager |
getLockManager()
|
java.util.Set |
getMethodPermissions(java.lang.reflect.Method m,
boolean home)
Returns the permissions for a method. |
RealmMapping |
getRealmMapping()
|
AuthenticationManager |
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 |
setLockManager(BeanLockManager lockManager)
|
void |
setRealmMapping(RealmMapping rm)
|
void |
setSecurityManager(AuthenticationManager 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 Logger log
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 AuthenticationManager sm
protected RealmMapping rm
protected java.lang.Object securityProxy
protected LocalContainerInvoker localContainerInvoker
protected java.lang.Class localHomeInterface
protected java.lang.Class localInterface
protected BeanLockManager lockManager
Constructor Detail |
public Container()
Method Detail |
public BeanLockManager getLockManager()
public void setLockManager(BeanLockManager lockManager)
public java.lang.Class getLocalClass()
public java.lang.Class getLocalHomeClass()
public java.lang.Object createBeanClassInstance() throws java.lang.Exception
Class.newInstance()
public void setTransactionManager(javax.transaction.TransactionManager tm)
tm
- TransactionManager
public javax.transaction.TransactionManager getTransactionManager()
public void setSecurityManager(AuthenticationManager sm)
public AuthenticationManager getSecurityManager()
public void setRealmMapping(RealmMapping rm)
public 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 |