com.liferay.portal.kernel.util
Class MethodCache

java.lang.Object
  extended by com.liferay.portal.kernel.util.MethodCache

public class MethodCache
extends java.lang.Object

View Source

Author:
Michael C. Han

Method Summary
static java.lang.reflect.Method get(java.util.Map<java.lang.String,java.lang.Class<?>> classesMap, java.util.Map<MethodKey,java.lang.reflect.Method> methodsMap, java.lang.String className, java.lang.String methodName)
           
static java.lang.reflect.Method get(java.util.Map<java.lang.String,java.lang.Class<?>> classesMap, java.util.Map<MethodKey,java.lang.reflect.Method> methodsMap, java.lang.String className, java.lang.String methodName, java.lang.Class<?>[] parameterTypes)
           
static java.lang.reflect.Method get(MethodKey methodKey)
           
static java.lang.reflect.Method get(java.lang.String className, java.lang.String methodName)
           
static java.lang.reflect.Method get(java.lang.String className, java.lang.String methodName, java.lang.Class<?>[] parameterTypes)
           
static java.lang.reflect.Method put(MethodKey methodKey, java.lang.reflect.Method method)
           
static void remove(java.lang.Class<?> classObj)
           
static void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static java.lang.reflect.Method get(java.lang.String className,
                                           java.lang.String methodName)
                                    throws java.lang.ClassNotFoundException,
                                           java.lang.NoSuchMethodException
Throws:
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException

get

public static java.lang.reflect.Method get(java.lang.String className,
                                           java.lang.String methodName,
                                           java.lang.Class<?>[] parameterTypes)
                                    throws java.lang.ClassNotFoundException,
                                           java.lang.NoSuchMethodException
Throws:
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException

get

public static java.lang.reflect.Method get(java.util.Map<java.lang.String,java.lang.Class<?>> classesMap,
                                           java.util.Map<MethodKey,java.lang.reflect.Method> methodsMap,
                                           java.lang.String className,
                                           java.lang.String methodName)
                                    throws java.lang.ClassNotFoundException,
                                           java.lang.NoSuchMethodException
Throws:
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException

get

public static java.lang.reflect.Method get(java.util.Map<java.lang.String,java.lang.Class<?>> classesMap,
                                           java.util.Map<MethodKey,java.lang.reflect.Method> methodsMap,
                                           java.lang.String className,
                                           java.lang.String methodName,
                                           java.lang.Class<?>[] parameterTypes)
                                    throws java.lang.ClassNotFoundException,
                                           java.lang.NoSuchMethodException
Throws:
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException

get

public static java.lang.reflect.Method get(MethodKey methodKey)
                                    throws java.lang.ClassNotFoundException,
                                           java.lang.NoSuchMethodException
Throws:
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException

put

public static java.lang.reflect.Method put(MethodKey methodKey,
                                           java.lang.reflect.Method method)

remove

public static void remove(java.lang.Class<?> classObj)

reset

public static void reset()