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 GetDeclaredField
static GetDeclaredField
andMakeAccessible
(Class<?> clazz, String fieldName) Before using this method, you need to check theHibernateValidatorPermission.ACCESS_PRIVATE_MEMBERS
permission against the security manager.run()
-
Method Details
-
action
-
andMakeAccessible
Before using this method, you need to check theHibernateValidatorPermission.ACCESS_PRIVATE_MEMBERS
permission against the security manager. -
run
- Specified by:
run
in interfacePrivilegedAction<Field>
-