|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.ejbx.EJBFactory
public class EJBFactory
Utility class for create EJBs from home.
We can create with argument (typical in EntityBeans case) or without argument (typical in SessionBeans case).
| Constructor Summary | |
|---|---|
EJBFactory()
|
|
| Method Summary | |
|---|---|
static java.lang.Object |
create(EJBHome home)
Create a EJB from a home. |
static java.lang.Object |
create(EJBHome home,
java.util.Map map)
Create a EJB from a home and the create argument. |
static java.lang.Object |
create(EJBHome home,
java.lang.Object details)
Create a EJB form home and the create arguments. |
static java.lang.Object |
create(java.lang.Object home,
java.lang.Class className)
Creates a EJB from a home and its class. |
static java.lang.Object |
create(java.lang.Object home,
java.lang.Class homeClass,
java.util.Map map)
Create a EJB from a home, its class and a java.util.Map as create argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EJBFactory()
| Method Detail |
|---|
public static java.lang.Object create(EJBHome home)
throws CreateException,
java.rmi.RemoteException,
java.lang.NoSuchMethodException
The home must to have a create() method.
home - The home against call the create() method
CreateException - The original from create() method
java.rmi.RemoteException - The original from create() method
java.lang.NoSuchMethodException - If the home does not have create() method
public static java.lang.Object create(java.lang.Object home,
java.lang.Class className)
throws CreateException,
java.rmi.RemoteException,
java.lang.NoSuchMethodException
The home must to have a create() method.
home - home on which the creation method is invoked.className - home class on which the creation method is invoked.
CreateException - From original create
java.rmi.RemoteException - From original create
java.lang.NoSuchMethodException - If the home does not have a create() method
public static java.lang.Object create(EJBHome home,
java.lang.Object details)
throws ValidationException,
CreateException,
java.rmi.RemoteException,
java.lang.NoSuchMethodException
The home must to have a create(Object ) method.
home - The home on which create method is invoked.details - Argument to send to create method
ValidationException - From create method
CreateException - From create method
java.rmi.RemoteException - From create method
java.lang.NoSuchMethodException - If the home does not have a method create(Object )
public static java.lang.Object create(EJBHome home,
java.util.Map map)
throws ValidationException,
CreateException,
java.rmi.RemoteException,
java.lang.NoSuchMethodException
The home must to have a create(Map ) method.
home - The home on which the create method is invoked.map - Argument sent to create method
ValidationException - From create method
CreateException - From create method
java.rmi.RemoteException - From create method
java.lang.NoSuchMethodException - If the home does not have a create(Object ) method
public static java.lang.Object create(java.lang.Object home,
java.lang.Class homeClass,
java.util.Map map)
throws CreateException,
ValidationException,
java.rmi.RemoteException,
java.lang.NoSuchMethodException
The home sent must to have a create(Map ) method.
home - The home on which create method is invokedhomeClass - Class of the homemap - Argument sent to create method
CreateException - From create method
ValidationException - From create method
java.rmi.RemoteException - From create method
java.lang.NoSuchMethodException - If the home does not have a create(Map ) method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||