| |
|
| java.lang.Object org.objectweb.jonas_ejb.container.JFactory
All known Subclasses: org.objectweb.jonas_ejb.container.JEntityFactory, org.objectweb.jonas_ejb.container.JMdbEndpointFactory, org.objectweb.jonas_ejb.container.JSessionFactory, org.objectweb.jonas_ejb.container.JMdbFactory,
JFactory | abstract public class JFactory implements BeanFactory(Code) | | This class is a factory for beans.
author: Philippe Durieux author: Florent Benoit (JACC security) |
ejbTimeoutSignature | protected String ejbTimeoutSignature(Code) | | Signature for ejbTimeout
|
isClusterReplicated | protected boolean isClusterReplicated(Code) | | |
maxCacheSize | protected int maxCacheSize(Code) | | |
minPoolSize | protected int minPoolSize(Code) | | initial value for pool size
|
myTimerService | protected TimerService myTimerService(Code) | | |
stopped | protected boolean stopped(Code) | | |
timerTxAttr | protected int timerTxAttr(Code) | | Transational attribute for ejbTimeout method.
default is TX_REQUIRES_NEW
|
tm | protected TransactionManager tm(Code) | | |
txbeanmanaged | protected boolean txbeanmanaged(Code) | | |
wm | protected WorkManager wm(Code) | | |
JFactory | public JFactory()(Code) | | constructor (for entity) must be without parameters (required by Jorm)
|
JFactory | public JFactory(BeanDesc dd, JContainer cont)(Code) | | constructor (for session)
Parameters: dd - The bean deployment descriptor Parameters: cont - the container for this bean |
checkJonasVersion | protected void checkJonasVersion(String clName)(Code) | | Check if the given class have been generated by GenIC tool with a correct
version. Trace an error message, if not.
Parameters: clName - class name |
checkSecurity | public void checkSecurity(EJBInvocation ejbInv)(Code) | | Check if the access to the bean is authorized
Parameters: ejbInv - object containing security signature of the method, args ofmethod, etc |
checkTransaction | abstract void checkTransaction(RequestCtx rctx)(Code) | | check Transaction attribute
Parameters: rctx - the Request Context |
checkTransactionContainer | protected void checkTransactionContainer(RequestCtx rctx)(Code) | | Process Transaction Attribute before calling a business method
Parameters: rctx - the Request Context throws: EJBException - throws: TransactionRequiredLocalException - |
getCacheSize | public int getCacheSize()(Code) | | max cache size for Jmx |
getDeploymentDescriptor | public BeanDesc getDeploymentDescriptor()(Code) | | Get the Deployement descriptor of this Ejb
BeanDesc The bean deployment descriptor |
getEjb10Environment | public Properties getEjb10Environment()(Code) | | the EJB 1.0 style environment associated with the Bean |
getEjbTimeoutSignature | public String getEjbTimeoutSignature()(Code) | | the security signature for ejbTimeout method. |
getEnv | public Hashtable getEnv()(Code) | | A Hashtable containing the JNDI Environment |
getMaxCacheSize | public int getMaxCacheSize()(Code) | | max cache size for Jmx |
getMinPoolSize | public int getMinPoolSize()(Code) | | min pool size for Jmx |
getPassivationDir | public File getPassivationDir()(Code) | | Get the directory where to store stateful state and timers
|
getPoolSize | abstract public int getPoolSize()(Code) | | the Instance pool size for this Ejb |
getTimerService | abstract public TimerService getTimerService()(Code) | | the TimerService for this bean.This works only for stateless or message driven beans. |
getTimerTxAttribute | public int getTimerTxAttribute()(Code) | | the transaction attribute for ejbTimeout method |
getTransactionManager | public TransactionManager getTransactionManager()(Code) | | the TransactionManager |
getWorkManager | public WorkManager getWorkManager()(Code) | | Return the WorkManager
|
init | public void init(BeanDesc dd, JContainer cont)(Code) | | Init this object
Parameters: dd - the deployment descriptor Parameters: cont - the Container |
initInstancePool | abstract public void initInstancePool()(Code) | | Init the pool of instances. Not used for stateful beans
|
isClassAvailable | protected boolean isClassAvailable(String className, boolean unique)(Code) | | Assess availability of a class in a given class loader
Parameters: className - the name of the class without the .class extension Parameters: unique - flag indicating if the class should be found only once inthe classloader True if class is available in the current class loader. |
isStopped | public boolean isStopped()(Code) | | |
isTxBeanManaged | public boolean isTxBeanManaged()(Code) | | true if transactions are managed inside the bean false iftransactions are managed by the container |
myClassLoader | public ClassLoader myClassLoader()(Code) | | the classloader for this container. |
postInvoke | public void postInvoke(RequestCtx rctx)(Code) | | Common postInvoke
Parameters: rctx - The RequestCtx that was returned at preInvoke() throws: EJBException - |
preInvoke | public RequestCtx preInvoke(int txa)(Code) | | Common preInvoke
Parameters: txa - Transaction Attribute (Supports, Required, ...) A RequestCtx object throws: EJBException - |
preInvokeRemote | public RequestCtx preInvokeRemote(int txa) throws RemoteException(Code) | | preInvoke for Remote access
Parameters: txa - Transaction Attribute (Supports, Required, ...) A RequestCtx object throws: java.rmi.TransactionRequiredException - throws: java.rmi.TransactionRolledbackException - throws: java.rmi.NoSuchObjectException - throws: RemoteException - preinvoke raised an EJBException |
resetComponentContext | public void resetComponentContext(Context oldctx)(Code) | | reset old Component Context for JNDI environment
Parameters: oldctx - previous Component Context to restore. |
restartTimers | public void restartTimers()(Code) | | Restart Timers
|
setComponentContext | public Context setComponentContext()(Code) | | set the Component Context for JNDI environment
previous Context |
stopContainer | public void stopContainer()(Code) | | |
|
|
|