public class MethodInfoUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MethodInfoUtil.BaseComparator<T> |
static class |
MethodInfoUtil.Level |
static class |
MethodInfoUtil.MethodPermissionComparator |
static class |
MethodInfoUtil.View |
static class |
MethodInfoUtil.ViewMethod |
| Constructor and Description |
|---|
MethodInfoUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Method |
getMethod(Class clazz,
MethodInfo info) |
static MethodInfoUtil.Level |
level(MethodInfo methodInfo) |
static boolean |
match(Method methodA,
Method methodB) |
static boolean |
matches(Method method,
MethodInfo methodInfo) |
static boolean |
matches(Method method,
NamedMethodInfo methodInfo) |
static boolean |
matches(Method method,
String methodName,
List<String> methodParams) |
static List<Method> |
matchingMethods(Method signature,
Class clazz) |
static List<Method> |
matchingMethods(MethodInfo mi,
Class clazz) |
static List<Method> |
matchingMethods(MethodInfo mi,
Method[] methods) |
static List<MethodPermissionInfo> |
normalizeMethodPermissionInfos(List<MethodPermissionInfo> infos)
This method splits the MethodPermissionInfo objects so that there is
exactly one MethodInfo per MethodPermissionInfo.
|
static Map<Method,MethodAttributeInfo> |
resolveAttributes(List<? extends MethodAttributeInfo> infos,
BeanContext beanContext) |
static Map<MethodInfoUtil.ViewMethod,MethodAttributeInfo> |
resolveViewAttributes(List<? extends MethodAttributeInfo> infos,
BeanContext beanContext) |
static Method |
toMethod(Class clazz,
NamedMethodInfo info)
Finds the nearest java.lang.reflect.Method with the given NamedMethodInfo
Callbacks can be private so class.getMethod() cannot be used.
|
static String |
toString(MethodConcurrencyInfo i) |
static String |
toString(MethodInfo i) |
static String |
toString(MethodPermissionInfo i) |
static String |
toString(MethodTransactionInfo i) |
static MethodInfoUtil.View |
view(MethodInfo methodInfo) |
public static Method toMethod(Class clazz, NamedMethodInfo info)
clazz - methodName - parameterTypes - IllegalStateException - if the method is not found in this class or any of its parent classespublic static List<Method> matchingMethods(MethodInfo mi, Class clazz)
public static List<Method> matchingMethods(MethodInfo mi, Method[] methods)
public static Method getMethod(Class clazz, MethodInfo info)
public static List<MethodPermissionInfo> normalizeMethodPermissionInfos(List<MethodPermissionInfo> infos)
infos - public static Map<Method,MethodAttributeInfo> resolveAttributes(List<? extends MethodAttributeInfo> infos, BeanContext beanContext)
public static Map<MethodInfoUtil.ViewMethod,MethodAttributeInfo> resolveViewAttributes(List<? extends MethodAttributeInfo> infos, BeanContext beanContext)
public static boolean matches(Method method, MethodInfo methodInfo)
public static boolean matches(Method method, NamedMethodInfo methodInfo)
public static MethodInfoUtil.View view(MethodInfo methodInfo)
public static MethodInfoUtil.Level level(MethodInfo methodInfo)
public static String toString(MethodInfo i)
public static String toString(MethodPermissionInfo i)
public static String toString(MethodTransactionInfo i)
public static String toString(MethodConcurrencyInfo i)
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.