org.objectweb.jonas_ejb.container
Interface BeanFactory

All Known Implementing Classes:
JFactory

public interface BeanFactory

Interface to the Bean Factories used by the Container, JMX, or generic parts of this package.


Method Summary
 JContainer getContainer()
          Returns the JContainer
 BeanDesc getDeploymentDescriptor()
          Get the Deployement descriptor of this Ejb
 java.lang.String getEJBName()
          get the bean name
 java.util.Hashtable getEnv()
          Return the JNDI Environment
 JHome getHome()
          returns the home if exist or null if not
 javax.naming.InitialContext getInitialContext()
          Returns the InitialContext
 JLocalHome getLocalHome()
          returns the local home if exist or null if not
 int getPoolSize()
           
 javax.transaction.TransactionManager getTransactionManager()
          returns the TransactionManager
 void reduceCache()
          reduce cache of instances
 void stop()
          stop this EJB (unregister it in JNDI)
 void sync()
          synchronize bean instances if needed
 

Method Detail

getEJBName

public java.lang.String getEJBName()
get the bean name

getDeploymentDescriptor

public BeanDesc getDeploymentDescriptor()
Get the Deployement descriptor of this Ejb
Returns:
BeanDesc The bean deployment descriptor

getPoolSize

public int getPoolSize()
Returns:
the Instance pool size for this Ejb

stop

public void stop()
stop this EJB (unregister it in JNDI)

sync

public void sync()
synchronize bean instances if needed

reduceCache

public void reduceCache()
reduce cache of instances

getHome

public JHome getHome()
returns the home if exist or null if not

getLocalHome

public JLocalHome getLocalHome()
returns the local home if exist or null if not

getTransactionManager

public javax.transaction.TransactionManager getTransactionManager()
returns the TransactionManager

getContainer

public JContainer getContainer()
Returns the JContainer

getEnv

public java.util.Hashtable getEnv()
Return the JNDI Environment

getInitialContext

public javax.naming.InitialContext getInitialContext()
Returns the InitialContext