org.objectweb.jonas_ejb.container
Interface Container

All Known Implementing Classes:
JContainer

public interface Container

A Container is what an EJBServer can see of a JOnAS Container. It holds all beans coming from a same ejbjar file. There is no possibility to add or remove dynamically beans in a Container since it is build with all its beans. JMX can use this interface, but no specific Jmx classes should be inside the Container. Its management is done outside jonas_ejb.

See Also:

Method Summary
 java.lang.ClassLoader getClassLoader()
          Returns the classloader used for this Container
 org.enhydra.naming.ContainerNaming getContainerNaming()
          return the ContainerNaming object
 java.lang.String getFileName()
          Return the file name of the container (.xml or .jar)
 JmsManager getJmsManager()
          return the JmsManager object
 java.security.Guard getMethodGuard()
          Get the MethodGuard
 java.lang.String getName()
          Return the name of the container
 PrincipalFactory getPrincipalFactory()
          Get the PrincipalFactory
 java.security.Guard getRoleGuard()
          Get the RoleGuard
 javax.transaction.TransactionManager getTransactionManager()
          return the Transaction Manager
 java.lang.String[] listBeanNames()
          Returns a list of beans hosted in the container.
 void remove()
          Remove the JOnAS container and unregister all beans.
 void setContainerNaming(org.enhydra.naming.ContainerNaming naming)
          set the ContainerNaming object
 void setJmsManager(JmsManager jms)
          set the JmsManager object
 void setMethodGuard(java.security.Guard methodGuard)
          Set the MethodGuard
 void setPrincipalFactory(PrincipalFactory pf)
          Set the PrincipalFactory.
 void setRoleGuard(java.security.Guard roleGuard)
          Set the RoleGuard
 void setThreadPoolSize(int sz)
          Set the thread pool size.
 void setTransactionManager(javax.transaction.TransactionManager tm)
          set the Transaction Manager.
 void syncAll(boolean passivate)
          Synchronize all entity beans
 

Method Detail

listBeanNames

public java.lang.String[] listBeanNames()
Returns a list of beans hosted in the container.

getName

public java.lang.String getName()
Return the name of the container

getFileName

public java.lang.String getFileName()
Return the file name of the container (.xml or .jar)

setMethodGuard

public void setMethodGuard(java.security.Guard methodGuard)
Set the MethodGuard

getMethodGuard

public java.security.Guard getMethodGuard()
Get the MethodGuard

setRoleGuard

public void setRoleGuard(java.security.Guard roleGuard)
Set the RoleGuard

getRoleGuard

public java.security.Guard getRoleGuard()
Get the RoleGuard

getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns the classloader used for this Container

setPrincipalFactory

public void setPrincipalFactory(PrincipalFactory pf)
Set the PrincipalFactory. This factory can be EJBServer dependant. The Container makes no assumption on how to get the Principal.

getPrincipalFactory

public PrincipalFactory getPrincipalFactory()
Get the PrincipalFactory

setContainerNaming

public void setContainerNaming(org.enhydra.naming.ContainerNaming naming)
set the ContainerNaming object

getContainerNaming

public org.enhydra.naming.ContainerNaming getContainerNaming()
return the ContainerNaming object

setThreadPoolSize

public void setThreadPoolSize(int sz)
Set the thread pool size. This thread pool is currently used only for message driven beans.
Parameters:
sz - number of threads in the pool.

syncAll

public void syncAll(boolean passivate)
Synchronize all entity beans

setTransactionManager

public void setTransactionManager(javax.transaction.TransactionManager tm)
set the Transaction Manager.

getTransactionManager

public javax.transaction.TransactionManager getTransactionManager()
return the Transaction Manager

setJmsManager

public void setJmsManager(JmsManager jms)
set the JmsManager object

getJmsManager

public JmsManager getJmsManager()
return the JmsManager object

remove

public void remove()
Remove the JOnAS container and unregister all beans.