|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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 BeanNaming |
bn
|
protected JContainer |
cont
|
protected BeanDesc |
dd
|
protected java.util.Properties |
ejb10Env
|
protected java.lang.String |
ejbname
|
protected javax.naming.Context |
JNDICtx
|
protected org.enhydra.naming.ContainerNaming |
naming
|
protected javax.transaction.TransactionManager |
tm
|
protected boolean |
txbeanmanaged
|
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. |
protected void |
checkTransactionContainer(RequestCtx rctx)
Process Transaction Attribute before calling a business method |
JContainer |
getContainer()
returns the JContainer object |
static javax.naming.InitialContext |
getCorbaInitialContext()
|
BeanDesc |
getDeploymentDescriptor()
Get the Deployement descriptor of this Ejb |
java.util.Properties |
getEjb10Environment()
Returns the EJB 1.0 style environment associated with the Bean |
java.lang.String |
getEJBName()
get the bean name |
java.util.Hashtable |
getEnv()
return the JNDI Enviromnment |
javax.naming.InitialContext |
getInitialContext()
Returns the InitialContext |
abstract int |
getPoolSize()
|
javax.transaction.TransactionManager |
getTransactionManager()
returns the TransactionManager |
void |
init(BeanDesc dd,
JContainer cont)
Init this object |
boolean |
isTxBeanManaged()
returns true if transactions are managed inside the bean returns false if transactions are managed by the container |
void |
postInvoke(RequestCtx rctx)
Common postInvoke |
void |
postInvokeRemote(RequestCtx rctx)
postInvoke for Remote access |
RequestCtx |
preInvoke(int txa,
java.lang.String secu)
Common preInvoke |
RequestCtx |
preInvokeRemote(int txa,
java.lang.String secu)
preInvoke for Remote access |
void |
resetComponentContext(javax.naming.Context oldctx)
reset old Component Context for JNDI environment |
javax.naming.Context |
setComponentContext()
set the Component Context for JNDI environment |
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, sync |
Field Detail |
protected JContainer cont
protected org.enhydra.naming.ContainerNaming naming
protected javax.transaction.TransactionManager tm
protected javax.naming.Context JNDICtx
protected BeanNaming bn
protected java.lang.String ejbname
protected BeanDesc dd
protected java.util.Properties ejb10Env
protected boolean txbeanmanaged
protected java.lang.Class beanclass
Constructor Detail |
public JFactory()
public JFactory(BeanDesc dd, JContainer cont)
Method Detail |
public void init(BeanDesc dd, JContainer cont)
public java.lang.String getEJBName()
getEJBName
in interface BeanFactory
public abstract int getPoolSize()
getPoolSize
in interface BeanFactory
public BeanDesc getDeploymentDescriptor()
getDeploymentDescriptor
in interface BeanFactory
public javax.transaction.TransactionManager getTransactionManager()
getTransactionManager
in interface BeanFactory
public JContainer getContainer()
getContainer
in interface BeanFactory
public java.util.Hashtable getEnv()
getEnv
in interface BeanFactory
public javax.naming.InitialContext getInitialContext()
getInitialContext
in interface BeanFactory
public static javax.naming.InitialContext getCorbaInitialContext() throws javax.naming.NamingException
public java.util.Properties getEjb10Environment()
public boolean isTxBeanManaged()
public javax.naming.Context setComponentContext()
public void resetComponentContext(javax.naming.Context oldctx)
public RequestCtx preInvoke(int txa, java.lang.String secu)
public void postInvoke(RequestCtx rctx)
public RequestCtx preInvokeRemote(int txa, java.lang.String secu) throws java.rmi.RemoteException
public void postInvokeRemote(RequestCtx rctx) throws java.rmi.RemoteException
protected void checkTransactionContainer(RequestCtx rctx)
protected void checkJonasVersion(java.lang.String clName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |