Package org.apache.axis.utils.cache
Class MethodCache
java.lang.Object
org.apache.axis.utils.cache.MethodCache
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.
- Author:
- Davanum Srinivas <dims@yahoo.com>, Sebastian Dietrich <sebastian.dietrich@anecon.com>
-
Method Summary
Modifier and TypeMethodDescriptionstatic MethodCache
Gets the only instance of this classReturns the specified method - if any.
-
Method Details
-
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 frommethodName
- the name of the methodparameterTypes
- the parameters of the method- Returns:
- the found method
- Throws:
NoSuchMethodException
- if the method can't be found
-