|
|||||||||
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 JContainer |
cont
|
protected BeanDesc |
dd
|
protected java.util.Properties |
ejb10Env
|
protected java.lang.String |
ejbname
|
protected javax.naming.Context |
JNDICtx
|
protected 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 |
static javax.naming.InitialContext |
getCorbaInitialContext()
|
BeanDesc |
getDeploymentDescriptor()
Get the Deployement descriptor of this Ejb |
java.util.Properties |
getEjb10Environment()
|
java.lang.String |
getEJBName()
get the bean name |
java.util.Hashtable |
getEnv()
Return the JNDI Environment |
javax.naming.InitialContext |
getInitialContext()
Returns the InitialContext |
abstract int |
getPoolSize()
Get the size of the instance pool for this bean |
javax.transaction.TransactionManager |
getTransactionManager()
returns the TransactionManager |
void |
init(BeanDesc dd,
JContainer cont)
Init this object |
protected boolean |
isClassAvailable(java.lang.String className,
boolean unique)
Assess availability of a class in a given class loader |
boolean |
isTxBeanManaged()
|
java.lang.ClassLoader |
myClassLoader()
|
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 ContainerNaming naming
protected javax.transaction.TransactionManager tm
protected javax.naming.Context JNDICtx
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)
dd
- the deployment descriptorcont
- the Containerprotected 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 classloaderpublic 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 javax.transaction.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 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)
oldctx
- previous Component Context to restore.public RequestCtx preInvoke(int txa, java.lang.String secu)
txa
- Transaction Attribute (Supports, Required, ...)secu
- Security String that uniquely identifies the method.javax.ejb.EJBException
- public void postInvoke(RequestCtx rctx)
rctx
- The RequestCtx that was returned at preInvoke()javax.ejb.EJBException
- public RequestCtx preInvokeRemote(int txa, java.lang.String secu) throws java.rmi.RemoteException
txa
- Transaction Attribute (Supports, Required, ...)secu
- Security String that uniquely identifies the method.TransactionRequiredException
- TransactionRolledbackException
- NoSuchObjectException
- java.rmi.RemoteException
- public void postInvokeRemote(RequestCtx rctx) throws java.rmi.RemoteException
rctx
- The RequestCtx that was returned at preInvoke()TransactionRequiredException
- TransactionRolledbackException
- NoSuchObjectException
- java.rmi.RemoteException
- protected void checkTransactionContainer(RequestCtx rctx)
rctx
- the Request Contextjavax.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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |