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

Field Summary
(package private)  java.lang.Object[] arguments
           
(package private)  java.lang.Class clazz
           
protected  DeploymentInfo deploymentInfo
           
(package private)  java.lang.reflect.Method method
           
(package private)  java.lang.Class[] parameterTypes
           
protected  java.lang.Object primaryKey
          The unique identity of the bean servicing the request.
(package private)  java.security.Principal principal
           
 
Constructor Summary
MethodInvocation(DeploymentInfo depInfo)
           
MethodInvocation(java.lang.reflect.Method mthd, java.lang.Object[] args)
           
MethodInvocation(java.lang.reflect.Method mthd, java.lang.Object[] args, java.lang.Object primaryKey, DeploymentInfo depInfo, java.security.Principal caller)
           
MethodInvocation(java.lang.Object primaryKey, DeploymentInfo depInfo)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Object[] getArguments()
           
 DeploymentInfo getDeploymentInfo()
           
 java.lang.reflect.Method getMethod()
           
 java.lang.Object getPrimaryKey()
           
 java.security.Principal getPrincipal()
           
 int hashCode()
           
 void setArguments(java.lang.Object[] args)
           
 void setMethod(java.lang.reflect.Method mthd)
           
 void setPrimaryKey(java.lang.Object key)
           
 void setPrincipal(java.security.Principal caller)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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