|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ejbutil.EjbUtil
public class EjbUtil
A utility class to find XDoclet generated Home interfaces of EJBs and to create EJBs
| Constructor Summary | |
|---|---|
EjbUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
create(java.lang.Class cl)
Create an EJB with the default create() |
static java.lang.Object |
find(java.lang.Class cl,
java.lang.String name)
Like find(name1, name2) but using only one name |
static java.lang.Object |
find(java.lang.Class cl,
java.lang.String name1,
java.lang.String name2)
Find the Home interface of the EJB in the COMP or JNDI namespace. |
static javax.ejb.EJBObject |
jbossCreate(java.lang.Class cl)
Creates an EJB in JBoss. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EjbUtil()
| Method Detail |
|---|
public static java.lang.Object find(java.lang.Class cl,
java.lang.String name1,
java.lang.String name2)
throws javax.naming.NamingException
cl - The class of the Home interfacename1 - The first name of the Home Interface of the EJB (normally
java:comp/env/...)name2 - The second name of the Home Interface of the EJB (normally JNDI)
or null
javax.naming.NamingException
public static java.lang.Object find(java.lang.Class cl,
java.lang.String name)
throws javax.naming.NamingException
cl - name -
javax.naming.NamingExceptionpublic static java.lang.Object create(java.lang.Class cl)
cl - The class of the Home interface
public static javax.ejb.EJBObject jbossCreate(java.lang.Class cl)
cl - The class of the Home interface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||