Class GetDeclaredMethod
- java.lang.Object
-
- org.hibernate.validator.internal.util.privilegedactions.GetDeclaredMethod
-
- All Implemented Interfaces:
PrivilegedAction<Method>
public final class GetDeclaredMethod extends Object implements PrivilegedAction<Method>
Returns the declared method with the specified name and parameter types ornullif it does not exist.- Author:
- Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetDeclaredMethodaction(Class<?> clazz, String methodName, Class<?>... parameterTypes)static GetDeclaredMethodandMakeAccessible(Class<?> clazz, String methodName, Class<?>... parameterTypes)Before using this method, you need to check theHibernateValidatorPermission.ACCESS_PRIVATE_MEMBERSpermission against the security manager.Methodrun()
-
-
-
Method Detail
-
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_MEMBERSpermission against the security manager.
-
run
public Method run()
- Specified by:
runin interfacePrivilegedAction<Method>
-
-