org.openejb.ri.server
Class EjbObjectProcessor
java.lang.Object
|
+--org.openejb.ri.server.EjbObjectProcessor
- public class EjbObjectProcessor
- extends java.lang.Object
Represents the EJB Server's responsibility in handling methods that are
declared in the javax.ejb.EJBObject interface.
- See Also:
EJBObject
Method Summary |
protected static java.lang.Object |
getEJBHome(MethodInvocation mi,
java.lang.String securityToken,
Server server)
Creates and returns an EjbProxyHandler that will be serialized and sent
back to the client. |
protected static java.lang.Object |
getHandle()
Creates and returns a new EJB Server specific handle for locating server and
obtaining a reference to the EJBObject. |
protected static java.lang.Object |
getPrimaryKey(MethodInvocation mi)
Returns the primary key of the EJBObject if the bean is a type of EntityBean. |
protected static java.lang.Object |
isIdentical(MethodInvocation mi)
Checks to see if the EJBObjects are identical. |
static java.lang.Object |
processMethod(MethodInvocation mi,
java.lang.String securityToken,
Server server)
Internally processes the getHandle, getPrimaryKey, isIdentical, remove
and getEJBHome methods from the EJBObject proxy. |
protected static java.lang.Object |
remove(MethodInvocation mi,
Server server)
Invokes the remove method on the container and passes back a null. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EjbObjectProcessor
public EjbObjectProcessor()
processMethod
public static java.lang.Object processMethod(MethodInvocation mi,
java.lang.String securityToken,
Server server)
throws OpenEJBException
- Internally processes the getHandle, getPrimaryKey, isIdentical, remove
and getEJBHome methods from the EJBObject proxy.
- Parameters:
mi
- securityToken
- server
- - Returns:
-
- Throws:
OpenEJBException
-
getHandle
protected static java.lang.Object getHandle()
- Creates and returns a new EJB Server specific handle for locating server and
obtaining a reference to the EJBObject.
- Returns:
-
getPrimaryKey
protected static java.lang.Object getPrimaryKey(MethodInvocation mi)
- Returns the primary key of the EJBObject if the bean is a type of EntityBean.
Returns a RemoteException if the bean is any other type.
- Parameters:
mi
- - Returns:
-
isIdentical
protected static java.lang.Object isIdentical(MethodInvocation mi)
- Checks to see if the EJBObjects are identical.
- Parameters:
mi
- - Returns:
- true if the EJBObjects share the same primary key
remove
protected static java.lang.Object remove(MethodInvocation mi,
Server server)
throws OpenEJBException
- Invokes the remove method on the container and passes back a null.
- Parameters:
mi
- server
- - Returns:
- null
- Throws:
OpenEJBException
-
getEJBHome
protected static java.lang.Object getEJBHome(MethodInvocation mi,
java.lang.String securityToken,
Server server)
- Creates and returns an EjbProxyHandler that will be serialized and sent
back to the client.
- Parameters:
mi
- securityToken
- server
- - Returns:
- a new instance of EjbProxyHandler