Class GetDeclaredField
- java.lang.Object
-
- org.hibernate.validator.internal.util.privilegedactions.GetDeclaredField
-
- All Implemented Interfaces:
PrivilegedAction<Field>
public final class GetDeclaredField extends Object implements PrivilegedAction<Field>
Returns the declared field with the specified name ornullif it does not exist.- Author:
- Emmanuel Bernard
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetDeclaredFieldaction(Class<?> clazz, String fieldName)static GetDeclaredFieldandMakeAccessible(Class<?> clazz, String fieldName)Before using this method, you need to check theHibernateValidatorPermission.ACCESS_PRIVATE_MEMBERSpermission against the security manager.Fieldrun()
-
-
-
Method Detail
-
action
public static GetDeclaredField action(Class<?> clazz, String fieldName)
-
andMakeAccessible
public static GetDeclaredField andMakeAccessible(Class<?> clazz, String fieldName)
Before using this method, you need to check theHibernateValidatorPermission.ACCESS_PRIVATE_MEMBERSpermission against the security manager.
-
run
public Field run()
- Specified by:
runin interfacePrivilegedAction<Field>
-
-