org.openejb.ri.server
Class MethodInvocation
java.lang.Object
|
+--org.openejb.ri.server.MethodInvocation
- All Implemented Interfaces:
- java.io.Serializable
- public class MethodInvocation
- extends java.lang.Object
- implements java.io.Serializable
This object is used to uniqly identify a method invocation within
on an EJBObject or EJBHome reference is created. The method invocation
represents the interface, method, arguments, and context of the invocation.
- Since:
- JDK 1.2
- Version:
- 0.1, 3/21/2000
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
primaryKey
protected java.lang.Object primaryKey
- The unique identity of the bean servicing the request.
In stateless session beans its null. In stateful session beans its an instance of SessionKey
that is unique to the bean's container. In entity beans its a entity's primary key.
This value is set permanently by the container system. It is immutable.
deploymentInfo
protected DeploymentInfo deploymentInfo
arguments
java.lang.Object[] arguments
principal
java.security.Principal principal
method
transient java.lang.reflect.Method method
clazz
transient java.lang.Class clazz
parameterTypes
java.lang.Class[] parameterTypes
MethodInvocation
public MethodInvocation(java.lang.reflect.Method mthd,
java.lang.Object[] args,
java.lang.Object primaryKey,
DeploymentInfo depInfo,
java.security.Principal caller)
MethodInvocation
public MethodInvocation(java.lang.Object primaryKey,
DeploymentInfo depInfo)
MethodInvocation
public MethodInvocation(DeploymentInfo depInfo)
MethodInvocation
public MethodInvocation(java.lang.reflect.Method mthd,
java.lang.Object[] args)
getPrimaryKey
public java.lang.Object getPrimaryKey()
setPrimaryKey
public void setPrimaryKey(java.lang.Object key)
getPrincipal
public java.security.Principal getPrincipal()
setPrincipal
public void setPrincipal(java.security.Principal caller)
getDeploymentInfo
public DeploymentInfo getDeploymentInfo()
getMethod
public java.lang.reflect.Method getMethod()
setMethod
public void setMethod(java.lang.reflect.Method mthd)
getArguments
public java.lang.Object[] getArguments()
setArguments
public void setArguments(java.lang.Object[] args)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object