Top Description Fields Constructors Methods
org.hibernate.validator.internal.util.privilegedactions

public final Class GetDeclaredMethod

extends Object
implements PrivilegedAction<Method>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction
Imports
java.lang.reflect.Method, java.security.PrivilegedAction

Returns the declared method with the specified name and parameter types or null if it does not exist.
Author
Kevin Pollet <[email protected]> (C) 2011 SERLI

Field Summary

Modifier and TypeField and Description
private final Class<?>
private final boolean
private final String
private final Class<?>[]

Constructor Summary

AccessConstructor and Description
private
GetDeclaredMethod(Class<?> clazz, String methodName, boolean makeAccessible, Class<?>... parameterTypes)

Method Summary

Modifier and TypeMethod and Description
public static GetDeclaredMethod
action(Class<?> clazz, String methodName, Class<?>... parameterTypes)

public static GetDeclaredMethod
andMakeAccessible(Class<?> clazz, String methodName, Class<?>... parameterTypes)

Before using this method, you need to check the HibernateValidatorPermission.ACCESS_PRIVATE_MEMBERS permission against the security manager.

public Method
run()

Implements java.security.PrivilegedAction.run.

Performs the computation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clazzback to summary
private final Class<?> clazz
makeAccessibleback to summary
private final boolean makeAccessible
methodNameback to summary
private final String methodName
parameterTypesback to summary
private final Class<?>[] parameterTypes

Constructor Detail

GetDeclaredMethodback to summary
private GetDeclaredMethod(Class<?> clazz, String methodName, boolean makeAccessible, Class<?>... parameterTypes)

Method Detail

actionback to summary
public static GetDeclaredMethod action(Class<?> clazz, String methodName, Class<?>... parameterTypes)
andMakeAccessibleback to summary
public static GetDeclaredMethod andMakeAccessible(Class<?> clazz, String methodName, Class<?>... parameterTypes)

Before using this method, you need to check the HibernateValidatorPermission.ACCESS_PRIVATE_MEMBERS permission against the security manager.

runback to summary
public Method run()

Implements java.security.PrivilegedAction.run.

Doc from java.security.PrivilegedAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:Method

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedAction should document what (if anything) this value represents.

Annotations
@Override