Class FieldEnablerPrivilegedAction
- java.lang.Object
-
- org.jboss.resteasy.plugins.providers.multipart.FieldEnablerPrivilegedAction
-
- All Implemented Interfaces:
PrivilegedAction<Object>
public class FieldEnablerPrivilegedAction extends Object implements PrivilegedAction<Object>
Helper class to make a field accessible. Directly calling field.setAccessible(true); is not advised as it could be invoked in a context without security permissions. For more information please check java.security.AccessController API in JavaSE. Usage example: AccessController.doPrivileged(new FieldEnablerPrivilegedAction(field));- Author:
- Attila Kiraly
-
-
Constructor Summary
Constructors Constructor Description FieldEnablerPrivilegedAction(Field field)
-
-
-
Constructor Detail
-
FieldEnablerPrivilegedAction
public FieldEnablerPrivilegedAction(Field field)
-
-
Method Detail
-
run
public Object run()
- Specified by:
run
in interfacePrivilegedAction<Object>
-
-