org.jboss.cache.marshall
Class MethodCallFactory

java.lang.Object
  extended by org.jboss.cache.marshall.MethodCallFactory

public class MethodCallFactory
extends java.lang.Object

Factory class to create instances of org.jboss.cache.marshall.MethodCall

Version:
$Revision: 1.6 $
Author:
Galder Zamarreno

Constructor Summary
MethodCallFactory()
           
 
Method Summary
static MethodCall create(java.lang.reflect.Method method, java.lang.Object... arguments)
          Creates and initialised an instance of MethodCall
static MethodCall createWithNullId(java.lang.reflect.Method method, java.lang.Object... arguments)
          Creates and initialised an instance of MethodCall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodCallFactory

public MethodCallFactory()
Method Detail

create

public static MethodCall create(java.lang.reflect.Method method,
                                java.lang.Object... arguments)
Creates and initialised an instance of MethodCall

Parameters:
method - Method instance of the MethodCall
arguments - list of parameters
Returns:
a new instance of MethodCall with the method id initialised

createWithNullId

public static MethodCall createWithNullId(java.lang.reflect.Method method,
                                          java.lang.Object... arguments)
Creates and initialised an instance of MethodCall

Parameters:
method - Method instance of the MethodCall
arguments - list of parameters
Returns:
a new instance of MethodCall with the method id set to -1 (uninitialized).