|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_ejb.container.JFactory
This class is a factory for beans.
Field Summary | |
protected java.lang.Class |
beanclass
|
protected JContainer |
cont
|
protected BeanDesc |
dd
|
protected java.util.Properties |
ejb10Env
|
protected java.lang.String |
ejbname
|
protected java.lang.String |
ejbTimeoutSignature
Signature for ejbTimeout |
protected boolean |
isClusterReplicated
|
protected javax.naming.Context |
JNDICtx
|
protected int |
maxCacheSize
|
protected int |
minPoolSize
initial value for pool size |
protected javax.ejb.TimerService |
myTimerService
|
protected ContainerNaming |
naming
|
protected java.io.File |
passivationDir
|
protected boolean |
stopped
|
protected int |
timerTxAttr
Transational attribute for ejbTimeout method. |
protected org.objectweb.transaction.jta.TransactionManager |
tm
|
protected boolean |
txbeanmanaged
|
protected javax.resource.spi.work.WorkManager |
wm
|
Constructor Summary | |
JFactory()
constructor (for entity) must be without parameters (required by Jorm) |
|
JFactory(BeanDesc dd,
JContainer cont)
constructor (for session) |
Method Summary | |
protected void |
checkJonasVersion(java.lang.String clName)
Check if the given class have been generated by GenIC tool with a correct version. |
void |
checkSecurity(EJBInvocation ejbInv)
Check if the access to the bean is authorized |
protected void |
checkTransactionContainer(RequestCtx rctx)
Process Transaction Attribute before calling a business method |
int |
getCacheSize()
|
JContainer |
getContainer()
Returns the JContainer |
BeanDesc |
getDeploymentDescriptor()
Get the Deployement descriptor of this Ejb |
java.util.Properties |
getEjb10Environment()
|
java.lang.String |
getEJBName()
get the bean name |
java.lang.String |
getEjbTimeoutSignature()
|
java.util.Hashtable |
getEnv()
Return the JNDI Environment |
javax.naming.InitialContext |
getInitialContext()
Returns the InitialContext |
int |
getMaxCacheSize()
|
int |
getMinPoolSize()
|
java.io.File |
getPassivationDir()
Get the directory where to store stateful state and timers |
abstract int |
getPoolSize()
Get the size of the instance pool for this bean |
abstract javax.ejb.TimerService |
getTimerService()
|
int |
getTimerTxAttribute()
|
org.objectweb.transaction.jta.TransactionManager |
getTransactionManager()
returns the TransactionManager |
javax.resource.spi.work.WorkManager |
getWorkManager()
Return the WorkManager |
void |
init(BeanDesc dd,
JContainer cont)
Init this object |
abstract void |
initInstancePool()
Init the pool of instances. |
protected boolean |
isClassAvailable(java.lang.String className,
boolean unique)
Assess availability of a class in a given class loader |
boolean |
isStopped()
|
boolean |
isTxBeanManaged()
|
java.lang.ClassLoader |
myClassLoader()
|
void |
postInvoke(RequestCtx rctx)
Common postInvoke |
void |
postInvokeRemote(RequestCtx rctx)
postInvoke for Remote access |
RequestCtx |
preInvoke(int txa)
Common preInvoke |
RequestCtx |
preInvokeRemote(int txa)
preInvoke for Remote access |
void |
resetComponentContext(javax.naming.Context oldctx)
reset old Component Context for JNDI environment |
void |
restartTimers()
Restart Timers |
javax.naming.Context |
setComponentContext()
set the Component Context for JNDI environment |
void |
stopContainer()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jonas_ejb.container.BeanFactory |
getHome, getLocalHome, reduceCache, stop, storeInstances, syncDirty |
Field Detail |
protected JContainer cont
protected boolean stopped
protected ContainerNaming naming
protected org.objectweb.transaction.jta.TransactionManager tm
protected javax.resource.spi.work.WorkManager wm
protected javax.naming.Context JNDICtx
protected java.lang.String ejbname
protected BeanDesc dd
protected java.util.Properties ejb10Env
protected javax.ejb.TimerService myTimerService
protected boolean txbeanmanaged
protected java.lang.Class beanclass
protected java.io.File passivationDir
protected int minPoolSize
protected int maxCacheSize
protected boolean isClusterReplicated
protected int timerTxAttr
protected java.lang.String ejbTimeoutSignature
Constructor Detail |
public JFactory()
public JFactory(BeanDesc dd, JContainer cont)
dd
- The bean deployment descriptorcont
- the container for this beanMethod Detail |
public void stopContainer()
public boolean isStopped()
public java.io.File getPassivationDir()
public void init(BeanDesc dd, JContainer cont)
dd
- the deployment descriptorcont
- the Containerpublic javax.resource.spi.work.WorkManager getWorkManager()
public abstract void initInstancePool()
initInstancePool
in interface BeanFactory
public void restartTimers()
restartTimers
in interface BeanFactory
protected boolean isClassAvailable(java.lang.String className, boolean unique)
className
- the name of the class without the .class extensionunique
- flag indicating if the class should be found only once in
the classloader
public java.lang.String getEJBName()
BeanFactory
getEJBName
in interface BeanFactory
public abstract int getPoolSize()
BeanFactory
getPoolSize
in interface BeanFactory
public BeanDesc getDeploymentDescriptor()
getDeploymentDescriptor
in interface BeanFactory
public org.objectweb.transaction.jta.TransactionManager getTransactionManager()
BeanFactory
getTransactionManager
in interface BeanFactory
public JContainer getContainer()
BeanFactory
getContainer
in interface BeanFactory
public java.util.Hashtable getEnv()
BeanFactory
getEnv
in interface BeanFactory
public javax.naming.InitialContext getInitialContext()
BeanFactory
getInitialContext
in interface BeanFactory
public abstract javax.ejb.TimerService getTimerService()
public java.util.Properties getEjb10Environment()
public boolean isTxBeanManaged()
public javax.naming.Context setComponentContext()
public void resetComponentContext(javax.naming.Context oldctx)
oldctx
- previous Component Context to restore.public int getTimerTxAttribute()
public java.lang.String getEjbTimeoutSignature()
public int getMinPoolSize()
public int getMaxCacheSize()
public int getCacheSize()
public void checkSecurity(EJBInvocation ejbInv)
ejbInv
- object containing security signature of the method, args of
method, etcpublic RequestCtx preInvoke(int txa)
txa
- Transaction Attribute (Supports, Required, ...)
javax.ejb.EJBException
public void postInvoke(RequestCtx rctx)
rctx
- The RequestCtx that was returned at preInvoke()
javax.ejb.EJBException
public RequestCtx preInvokeRemote(int txa) throws java.rmi.RemoteException
txa
- Transaction Attribute (Supports, Required, ...)
java.rmi.TransactionRequiredException
java.rmi.TransactionRolledbackException
java.rmi.NoSuchObjectException
java.rmi.RemoteException
- preinvoke raised an EJBExceptionpublic void postInvokeRemote(RequestCtx rctx) throws java.rmi.RemoteException
rctx
- The RequestCtx that was returne t preInvoke()
javax.transaction.TransactionRequiredException
javax.transaction.TransactionRolledbackException
java.rmi.NoSuchObjectException
java.rmi.RemoteException
- postinvoke failedprotected void checkTransactionContainer(RequestCtx rctx)
rctx
- the Request Context
javax.ejb.EJBException
javax.ejb.TransactionRequiredLocalException
protected void checkJonasVersion(java.lang.String clName)
clName
- class namepublic java.lang.ClassLoader myClassLoader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |