public final class GetDeclaredField extends Object implements PrivilegedAction<Field>
null
if it does not exist.Modifier and Type | Method and Description |
---|---|
static GetDeclaredField |
action(Class<?> clazz,
String fieldName) |
static GetDeclaredField |
andMakeAccessible(Class<?> clazz,
String fieldName)
Before using this method, you need to check the
HibernateValidatorPermission.ACCESS_PRIVATE_MEMBERS
permission against the security manager. |
Field |
run() |
public static GetDeclaredField action(Class<?> clazz, String fieldName)
public static GetDeclaredField andMakeAccessible(Class<?> clazz, String fieldName)
HibernateValidatorPermission.ACCESS_PRIVATE_MEMBERS
permission against the security manager.public Field run()
run
in interface PrivilegedAction<Field>
Copyright © 2019 JBoss by Red Hat. All rights reserved.