Class GetDeclaredMethod
java.lang.Object
org.hibernate.validator.internal.util.privilegedactions.GetDeclaredMethod
- All Implemented Interfaces:
PrivilegedAction<Method>
Returns the declared method with the specified name and parameter types or
null
if it does not exist.- Author:
- Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI
-
Method Summary
Modifier and TypeMethodDescriptionstatic GetDeclaredMethod
static GetDeclaredMethod
andMakeAccessible
(Class<?> clazz, String methodName, Class<?>... parameterTypes) Before using this method, you need to check theHibernateValidatorPermission.ACCESS_PRIVATE_MEMBERS
permission against the security manager.run()
-
Method Details
-
action
public static GetDeclaredMethod action(Class<?> clazz, String methodName, Class<?>... parameterTypes) -
andMakeAccessible
public static GetDeclaredMethod andMakeAccessible(Class<?> clazz, String methodName, Class<?>... parameterTypes) Before using this method, you need to check theHibernateValidatorPermission.ACCESS_PRIVATE_MEMBERS
permission against the security manager. -
run
- Specified by:
run
in interfacePrivilegedAction<Method>
-