1 /*2 * JBoss, the OpenSource J2EE webOS3 * 4 * Distributable under LGPL license.5 * See terms of license at gnu.org.6 */7 package org.jboss.cache.marshall;8 9 import java.lang.reflect.Method ;10 11 /**12 * Factory class to create instances of org.jboss.cache.marshall.MethodCall13 *14 * @author <a HREF="galder.zamarreno@jboss.com">Galder Zamarreno</a>15 * @version $Revision: 1.5 $16 */17 public class MethodCallFactory18 {19 /**20 * Creates and initialised an instance of MethodCall21 *22 * @param method Method instance of the MethodCall23 * @param arguments list of parameters24 * @return a new instance of MethodCall with the method id initialised25 */26 public static MethodCall create(Method method, Object ... arguments)27 {28 return new MethodCall(method, arguments, MethodDeclarations.lookupMethodId(method));29 }30 }31