org.objectweb.jonas_ejb.container.Container Interface Reference

Inherited by org.objectweb.jonas_ejb.container.JContainer.

Inheritance diagram for org.objectweb.jonas_ejb.container.Container:

Inheritance graph
[legend]
List of all members.

Public Member Functions

String[] listBeanNames ()

Package Functions

String getName ()
String getFileName ()
String getExternalFileName ()
ClassLoader getClassLoader ()
void setPrincipalFactory (PrincipalFactory pf)
PrincipalFactory getPrincipalFactory ()
void setContainerNaming (ContainerNaming naming)
ContainerNaming getContainerNaming ()
void setThreadPoolSize (int sz)
void setMaxThreadPoolSize (int sz)
int getMaxThreadPoolSize ()
void syncAll (boolean passivate)
void setTransactionManager (TransactionManager tm)
TransactionManager getTransactionManager ()
void setJmsManager (JmsManager jms)
JmsManager getJmsManager ()
void setEarFileName (String fileName)
String getEarFileName ()
void remove ()
void setSecurity (boolean b)
void setPermissionManager (PermissionManager permissionManager)
PermissionManager getPermissionManager ()
String getContextId ()

Detailed Description

A Container is what a JOnAS Server 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.
Author:
Philippe Coq

Jeff Mesnil (security)

Christophe Ney (PrincipalFactory)

Philippe Durieux (add missing methods)

Benjamin Bonnet (max size for thread pool)

Florent Benoit : JACC

Definition at line 51 of file Container.java.


Member Function Documentation

ClassLoader org.objectweb.jonas_ejb.container.Container.getClassLoader  )  [package]
 

Returns:
the classloader used for this Container

Implemented in org.objectweb.jonas_ejb.container.JContainer.

ContainerNaming org.objectweb.jonas_ejb.container.Container.getContainerNaming  )  [package]
 

Returns:
the ContainerNaming object

Implemented in org.objectweb.jonas_ejb.container.JContainer.

String org.objectweb.jonas_ejb.container.Container.getContextId  )  [package]
 

Gets the context ID of this container (for jacc)

Returns:
contextID used for JACC

Implemented in org.objectweb.jonas_ejb.container.JContainer.

String org.objectweb.jonas_ejb.container.Container.getEarFileName  )  [package]
 

get the name of the ear application containing this container.

Returns:
the name of the ear application containing this container.

Implemented in org.objectweb.jonas_ejb.container.JContainer.

Referenced by org.objectweb.jonas.container.EJBServiceImpl.removeContainer().

String org.objectweb.jonas_ejb.container.Container.getExternalFileName  )  [package]
 

Returns:
the external(user) file name of the container

Implemented in org.objectweb.jonas_ejb.container.JContainer.

Referenced by org.objectweb.jonas.container.EJBServiceImpl.getContainer(), and org.objectweb.jonas.container.EJBServiceImpl.getDeployedJars().

String org.objectweb.jonas_ejb.container.Container.getFileName  )  [package]
 

Returns:
the file name of the container (.xml or .jar)

Implemented in org.objectweb.jonas_ejb.container.JContainer.

Referenced by org.objectweb.jonas.container.EJBServiceImpl.isJarDeployedByWorkName().

JmsManager org.objectweb.jonas_ejb.container.Container.getJmsManager  )  [package]
 

Returns:
the JmsManager object

Implemented in org.objectweb.jonas_ejb.container.JContainer.

int org.objectweb.jonas_ejb.container.Container.getMaxThreadPoolSize  )  [package]
 

Get the max thread pool size. This thread pool is currently used only for message driven beans.

Returns:
number max of threads in the pool.

Implemented in org.objectweb.jonas_ejb.container.JContainer.

String org.objectweb.jonas_ejb.container.Container.getName  )  [package]
 

Returns:
name of this Container

Implemented in org.objectweb.jonas_ejb.container.JContainer.

Referenced by org.objectweb.jonas.container.EJBServiceImpl.buildEJBModuleName(), org.objectweb.jonas.container.EJBServiceImpl.isJarDeployedByWorkName(), org.objectweb.jonas.adm.Adm.listBeans(), org.objectweb.jonas.adm.Adm.listContext(), and org.objectweb.jonas.container.EJBServiceImpl.removeContainer().

PermissionManager org.objectweb.jonas_ejb.container.Container.getPermissionManager  )  [package]
 

Gets the permission manager

Returns:
the permission manager

Implemented in org.objectweb.jonas_ejb.container.JContainer.

PrincipalFactory org.objectweb.jonas_ejb.container.Container.getPrincipalFactory  )  [package]
 

Returns:
the PrincipalFactory of the Container

Implemented in org.objectweb.jonas_ejb.container.JContainer.

TransactionManager org.objectweb.jonas_ejb.container.Container.getTransactionManager  )  [package]
 

Returns:
the Transaction Manager

Implemented in org.objectweb.jonas_ejb.container.JContainer.

String [] org.objectweb.jonas_ejb.container.Container.listBeanNames  ) 
 

Returns:
List of beans hosted in this Container

Implemented in org.objectweb.jonas_ejb.container.JContainer.

Referenced by org.objectweb.jonas.adm.Adm.listBeans().

void org.objectweb.jonas_ejb.container.Container.remove  )  [package]
 

Remove the JOnAS container and unregister all beans.

Implemented in org.objectweb.jonas_ejb.container.JContainer.

Referenced by org.objectweb.jonas.container.EJBServiceImpl.removeContainer().

void org.objectweb.jonas_ejb.container.Container.setContainerNaming ContainerNaming  naming  )  [package]
 

set the ContainerNaming object

Parameters:
naming the ContainerNaming object

Implemented in org.objectweb.jonas_ejb.container.JContainer.

void org.objectweb.jonas_ejb.container.Container.setEarFileName String  fileName  )  [package]
 

set the name of the ear application containing this container.

Parameters:
fileName the name of the ear application containing this container.

Implemented in org.objectweb.jonas_ejb.container.JContainer.

void org.objectweb.jonas_ejb.container.Container.setJmsManager JmsManager  jms  )  [package]
 

set the JmsManager object

Parameters:
jms the JmsManager

Implemented in org.objectweb.jonas_ejb.container.JContainer.

void org.objectweb.jonas_ejb.container.Container.setMaxThreadPoolSize int  sz  )  [package]
 

Set the max thread pool size. This thread pool is currently used only for message driven beans.

Parameters:
sz number of threads in the pool.

Implemented in org.objectweb.jonas_ejb.container.JContainer.

void org.objectweb.jonas_ejb.container.Container.setPermissionManager PermissionManager  permissionManager  )  [package]
 

Set the permission manager object

Parameters:
permissionManager permission manager object

Implemented in org.objectweb.jonas_ejb.container.JContainer.

void org.objectweb.jonas_ejb.container.Container.setPrincipalFactory PrincipalFactory  pf  )  [package]
 

Set the PrincipalFactory. This factory can be JOnAS Server dependant. The Container makes no assumption on how to get the Principal.

Parameters:
pf the PrincipalFactory

Implemented in org.objectweb.jonas_ejb.container.JContainer.

void org.objectweb.jonas_ejb.container.Container.setSecurity boolean  b  )  [package]
 

Set the security flag to enable or disable security

Parameters:
b true or false to enable/disable security

Implemented in org.objectweb.jonas_ejb.container.JContainer.

void org.objectweb.jonas_ejb.container.Container.setThreadPoolSize int  sz  )  [package]
 

Set the thread pool size. This thread pool is currently used only for message driven beans.

Parameters:
sz number of threads in the pool.

Implemented in org.objectweb.jonas_ejb.container.JContainer.

void org.objectweb.jonas_ejb.container.Container.setTransactionManager TransactionManager  tm  )  [package]
 

set the Transaction Manager.

Parameters:
tm the Transaction Manager.

Implemented in org.objectweb.jonas_ejb.container.JContainer.

void org.objectweb.jonas_ejb.container.Container.syncAll boolean  passivate  )  [package]
 

Synchronize all entity beans

Parameters:
passivate true if bean instances will be released after having been written on storage.

Implemented in org.objectweb.jonas_ejb.container.JContainer.


The documentation for this interface was generated from the following file:
Generated on Tue Feb 15 15:09:59 2005 for JOnAS by  doxygen 1.3.9.1