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 or
null
if it does not exist. This action will
iterate through getter name candidates and return the first found method.
GetMethodFromPropertyName#lookForMethodsInHierarchy
parameter controls if we need to check for methods on
superclasses/implemented interfaces or not, if equals to false
it will use
Class.getDeclaredMethod(String, Class[])
, and Class.getMethod(String, Class[])
otherwise.
- Author:
- Marko Bekhta
-
Method Summary
-
Method Details
-
action
public static GetMethodFromGetterNameCandidates action(Class<?> clazz, List<String> getterNameCandidates) -
action
public static GetMethodFromGetterNameCandidates action(Class<?> clazz, List<String> possibleMethodNames, boolean lookForMethodsInHierarchy) -
run
- Specified by:
run
in interfacePrivilegedAction<Method>
-