org.objectweb.jonas_ejb.container.BeanFactory Interface Reference

Inherited by org.objectweb.jonas_ejb.container.JFactory.

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

Inheritance graph
[legend]
List of all members.

Public Member Functions

String getEJBName ()

Package Functions

BeanDesc getDeploymentDescriptor ()
int getPoolSize ()
void stop ()
void sync ()
void reduceCache ()
JHome getHome ()
JLocalHome getLocalHome ()
TransactionManager getTransactionManager ()
JContainer getContainer ()
Hashtable getEnv ()
InitialContext getInitialContext ()
void initInstancePool ()

Detailed Description

Interface to the Bean Factories used by the Container, JMX, or generic parts of this package.
Author:
Philippe Durieux, Philippe Coq (Bull)

Definition at line 41 of file BeanFactory.java.


Member Function Documentation

JContainer org.objectweb.jonas_ejb.container.BeanFactory.getContainer  )  [package]
 

Returns the JContainer

Returns:
The Container where the bean lives.

Implemented in org.objectweb.jonas_ejb.container.JFactory.

BeanDesc org.objectweb.jonas_ejb.container.BeanFactory.getDeploymentDescriptor  )  [package]
 

Get the Deployement descriptor of this Ejb

Returns:
BeanDesc The bean deployment descriptor

Implemented in org.objectweb.jonas_ejb.container.JFactory.

Referenced by org.objectweb.jonas_ejb.container.JContainer.getEntityBMPNb(), org.objectweb.jonas_ejb.container.JContainer.getEntityCMPNb(), org.objectweb.jonas_ejb.container.JContainer.getMessageDrivenNb(), org.objectweb.jonas_ejb.container.JContainer.getStatefulSessionNb(), and org.objectweb.jonas_ejb.container.JContainer.getStatelessSessionNb().

String org.objectweb.jonas_ejb.container.BeanFactory.getEJBName  ) 
 

get the bean name

Returns:
The name of the bean

Implemented in org.objectweb.jonas_ejb.container.JFactory.

Referenced by org.objectweb.jonas_ejb.container.JContainer.remove().

Hashtable org.objectweb.jonas_ejb.container.BeanFactory.getEnv  )  [package]
 

Return the JNDI Environment

Returns:
List of Environment used by the bean

Implemented in org.objectweb.jonas_ejb.container.JFactory.

JHome org.objectweb.jonas_ejb.container.BeanFactory.getHome  )  [package]
 

returns the home if exist or null if not

Returns:
Home for that bean, if exists.

Implemented in org.objectweb.jonas_ejb.container.JEntityFactory, org.objectweb.jonas_ejb.container.JMdbEndpointFactory, org.objectweb.jonas_ejb.container.JMdbFactory, and org.objectweb.jonas_ejb.container.JSessionFactory.

Referenced by org.objectweb.jonas_ejb.container.JSessionRemote.getEJBHome(), and org.objectweb.jonas_ejb.container.jorm.JEntityContext.getPrimaryKey().

InitialContext org.objectweb.jonas_ejb.container.BeanFactory.getInitialContext  )  [package]
 

Returns the InitialContext

Returns:
JNDI Initial Context

Implemented in org.objectweb.jonas_ejb.container.JFactory.

JLocalHome org.objectweb.jonas_ejb.container.BeanFactory.getLocalHome  )  [package]
 

returns the local home if exist or null if not

Returns:
LocalHome for that bean, if exists.

Implemented in org.objectweb.jonas_ejb.container.JEntityFactory, org.objectweb.jonas_ejb.container.JMdbEndpointFactory, org.objectweb.jonas_ejb.container.JMdbFactory, and org.objectweb.jonas_ejb.container.JSessionFactory.

Referenced by org.objectweb.jonas_ejb.container.jorm.JEntityContext.getPrimaryKey().

int org.objectweb.jonas_ejb.container.BeanFactory.getPoolSize  )  [package]
 

Get the size of the instance pool for this bean

Returns:
number of instances in the pool

Implemented in org.objectweb.jonas_ejb.container.JEntityFactory, org.objectweb.jonas_ejb.container.JFactory, org.objectweb.jonas_ejb.container.JMdbEndpointFactory, org.objectweb.jonas_ejb.container.JMdbFactory, org.objectweb.jonas_ejb.container.JStatefulFactory, and org.objectweb.jonas_ejb.container.JStatelessFactory.

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

returns the TransactionManager

Returns:
The Transaction Manager

Implemented in org.objectweb.jonas_ejb.container.JFactory.

void org.objectweb.jonas_ejb.container.BeanFactory.initInstancePool  )  [package]
 

Init the pool of instances

Implemented in org.objectweb.jonas_ejb.container.JEntityFactory, org.objectweb.jonas_ejb.container.JFactory, org.objectweb.jonas_ejb.container.JMdbEndpointFactory, org.objectweb.jonas_ejb.container.JMdbFactory, org.objectweb.jonas_ejb.container.JStatefulFactory, and org.objectweb.jonas_ejb.container.JStatelessFactory.

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

void org.objectweb.jonas_ejb.container.BeanFactory.reduceCache  )  [package]
 

reduce cache of instances

Implemented in org.objectweb.jonas_ejb.container.JEntityFactory, org.objectweb.jonas_ejb.container.JMdbEndpointFactory, org.objectweb.jonas_ejb.container.JMdbFactory, org.objectweb.jonas_ejb.container.JStatefulFactory, and org.objectweb.jonas_ejb.container.JStatelessFactory.

Referenced by org.objectweb.jonas_ejb.container.Swapper.run(), and org.objectweb.jonas_ejb.container.JContainer.syncAll().

void org.objectweb.jonas_ejb.container.BeanFactory.stop  )  [package]
 

stop this EJB (unregister it in JNDI)

Implemented in org.objectweb.jonas_ejb.container.JEntityFactory, org.objectweb.jonas_ejb.container.JMdbEndpointFactory, org.objectweb.jonas_ejb.container.JMdbFactory, org.objectweb.jonas_ejb.container.jorm.JormFactory, and org.objectweb.jonas_ejb.container.JSessionFactory.

Referenced by org.objectweb.jonas_ejb.container.JContainer.remove().

void org.objectweb.jonas_ejb.container.BeanFactory.sync  )  [package]
 

synchronize bean instances if needed

Implemented in org.objectweb.jonas_ejb.container.JEntityFactory, org.objectweb.jonas_ejb.container.JMdbEndpointFactory, org.objectweb.jonas_ejb.container.JMdbFactory, and org.objectweb.jonas_ejb.container.JSessionFactory.

Referenced by org.objectweb.jonas_ejb.container.Swapper.run(), and org.objectweb.jonas_ejb.container.JContainer.syncAll().


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