KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > marshall > MethodCallFactory


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
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 JavaDoc;
10
11 /**
12  * Factory class to create instances of org.jboss.cache.marshall.MethodCall
13  *
14  * @author <a HREF="galder.zamarreno@jboss.com">Galder Zamarreno</a>
15  * @version $Revision: 1.5 $
16  */

17 public class MethodCallFactory
18 {
19    /**
20     * Creates and initialised an instance of MethodCall
21     *
22     * @param method Method instance of the MethodCall
23     * @param arguments list of parameters
24     * @return a new instance of MethodCall with the method id initialised
25     */

26    public static MethodCall create(Method JavaDoc method, Object JavaDoc ... arguments)
27    {
28       return new MethodCall(method, arguments, MethodDeclarations.lookupMethodId(method));
29    }
30 }
31
Popular Tags