org.jfox.ejb
Class InvocationImpl

java.lang.Object
  extended byorg.jfox.ejb.InvocationImpl
All Implemented Interfaces:
Invocation, java.io.Serializable

public class InvocationImpl
extends java.lang.Object
implements Invocation

表示一个远程方法调用

See Also:
Serialized Form

Constructor Summary
InvocationImpl(ObjectId objectId, java.lang.String methodHash, java.lang.Object[] args)
           
 
Method Summary
 java.lang.Object[] getArgs()
           
 javax.ejb.EnterpriseBean getBean()
           
 java.lang.reflect.Method getMethod()
           
 java.lang.String getMethodHash()
           
 ObjectId getObjectId()
           
 void setBean(javax.ejb.EnterpriseBean instance)
          the bean object
 void setMethod(java.lang.reflect.Method method)
          在由 Bucket 取得真是的 Method 对象之后,把 Method 设置到 Invocation 中
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvocationImpl

public InvocationImpl(ObjectId objectId,
                      java.lang.String methodHash,
                      java.lang.Object[] args)
Method Detail

getObjectId

public ObjectId getObjectId()
Specified by:
getObjectId in interface Invocation
Returns:
用来执行该方法的 ejb object 的 id

getMethodHash

public java.lang.String getMethodHash()
Specified by:
getMethodHash in interface Invocation
Returns:
要执行的方法的 hash, 这个 hash 可以唯一的标志一个 method

getArgs

public java.lang.Object[] getArgs()
Specified by:
getArgs in interface Invocation

getMethod

public java.lang.reflect.Method getMethod()
Specified by:
getMethod in interface Invocation

setMethod

public void setMethod(java.lang.reflect.Method method)
Description copied from interface: Invocation
在由 Bucket 取得真是的 Method 对象之后,把 Method 设置到 Invocation 中

Specified by:
setMethod in interface Invocation
Parameters:
method -

setBean

public void setBean(javax.ejb.EnterpriseBean instance)
Description copied from interface: Invocation
the bean object

Specified by:
setBean in interface Invocation
Parameters:
instance -

getBean

public javax.ejb.EnterpriseBean getBean()
Specified by:
getBean in interface Invocation

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns:
a string representation of the object.