org.apache.axis2.databinding.utils
Class MethodCache

java.lang.Object
  extended byorg.apache.axis2.databinding.utils.MethodCache

public class MethodCache
extends Object

A cache for methods. Used to get methods by their signature and stores them in a local cache for performance reasons. This class is a singleton - so use getInstance to get an instance of it.


Method Summary
static MethodCache getInstance()
          Gets the only instance of this class
 Method getMethod(Class clazz, String methodName, Class[] parameterTypes)
          Returns the specified method - if any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MethodCache getInstance()
Gets the only instance of this class

Returns:
the only instance of this class

getMethod

public Method getMethod(Class clazz,
                        String methodName,
                        Class[] parameterTypes)
                 throws NoSuchMethodException
Returns the specified method - if any.

Parameters:
clazz - the class to get the method from
methodName - the name of the method
parameterTypes - the parameters of the method
Returns:
the found method
Throws:
NoSuchMethodException - if the method can't be found