public class MethodResolver
extends java.lang.Object
Constructor and Description |
---|
MethodResolver() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.Class,java.util.Set<java.lang.Class>> |
getWideningConversions()
Returns the allowable widening conversions.
|
static java.lang.reflect.Constructor |
resolveCtor(java.lang.Class declaringClass,
java.lang.Class[] paramTypes) |
static java.lang.reflect.Method |
resolveMethod(java.lang.Class declaringClass,
java.lang.String methodName,
java.lang.Class[] paramTypes,
boolean allowInstance,
boolean[] allowEventBeanType,
boolean[] allowEventBeanCollType)
Attempts to find the static or instance method described by the parameters,
or a method of the same name that will accept the same type of
parameters.
|
public static java.util.Map<java.lang.Class,java.util.Set<java.lang.Class>> getWideningConversions()
public static java.lang.reflect.Method resolveMethod(java.lang.Class declaringClass, java.lang.String methodName, java.lang.Class[] paramTypes, boolean allowInstance, boolean[] allowEventBeanType, boolean[] allowEventBeanCollType) throws MethodResolverNoSuchMethodException
declaringClass
- - the class to search for the methodmethodName
- - the name of the methodparamTypes
- - the parameter types for the methodallowInstance
- - true to allow instance methods as well, false to allow only static methodallowEventBeanCollType
- whether event-bean-collection parameter type is allowedallowEventBeanType
- whether event-bean parameter type is allowedMethodResolverNoSuchMethodException
- if the method could not be foundpublic static java.lang.reflect.Constructor resolveCtor(java.lang.Class declaringClass, java.lang.Class[] paramTypes) throws MethodResolverNoSuchCtorException