Class GetMethodFromGetterNameCandidates
- java.lang.Object
-
- org.hibernate.validator.internal.util.privilegedactions.GetMethodFromGetterNameCandidates
-
- All Implemented Interfaces:
PrivilegedAction<Method>
public final class GetMethodFromGetterNameCandidates extends Object implements PrivilegedAction<Method>
Returns the method with the specified property name ornullif it does not exist. This action will iterate through getter name candidates and return the first found method.GetMethodFromPropertyName#lookForMethodsInHierarchyparameter controls if we need to check for methods on superclasses/implemented interfaces or not, if equals tofalseit will useClass.getDeclaredMethod(String, Class[]), andClass.getMethod(String, Class[])otherwise.- Author:
- Marko Bekhta
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetMethodFromGetterNameCandidatesaction(Class<?> clazz, List<String> getterNameCandidates)static GetMethodFromGetterNameCandidatesaction(Class<?> clazz, List<String> possibleMethodNames, boolean lookForMethodsInHierarchy)Methodrun()
-
-
-
Method Detail
-
action
public static GetMethodFromGetterNameCandidates action(Class<?> clazz, List<String> getterNameCandidates)
-
action
public static GetMethodFromGetterNameCandidates action(Class<?> clazz, List<String> possibleMethodNames, boolean lookForMethodsInHierarchy)
-
run
public Method run()
- Specified by:
runin interfacePrivilegedAction<Method>
-
-