Class GetDeclaredField
java.lang.Object
org.hibernate.validator.internal.util.privilegedactions.GetDeclaredField
- All Implemented Interfaces:
PrivilegedAction<Field>
Returns the declared field with the specified name or
null if it does not exist.- Author:
- Emmanuel Bernard
-
Method Summary
Modifier and TypeMethodDescriptionstatic GetDeclaredFieldstatic GetDeclaredFieldandMakeAccessible(Class<?> clazz, String fieldName) Before using this method, you need to check theHibernateValidatorPermission.ACCESS_PRIVATE_MEMBERSpermission against the security manager.run()
-
Method Details
-
action
-
andMakeAccessible
Before using this method, you need to check theHibernateValidatorPermission.ACCESS_PRIVATE_MEMBERSpermission against the security manager. -
run
- Specified by:
runin interfacePrivilegedAction<Field>
-