Top Fields Constructors Methods
org.eclipse.persistence.internal.security

public Class PrivilegedGetDeclaredField

extends Object
implements PrivilegedExceptionAction<Field>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedExceptionAction
Imports
java.lang.reflect.Field, java.security.PrivilegedExceptionAction

Field Summary

Modifier and TypeField and Description
private final String
private final Class<?>
private final boolean

Constructor Summary

AccessConstructor and Description
public
PrivilegedGetDeclaredField(Class<?> javaClass, String fieldName, boolean shouldSetAccessible)

Method Summary

Modifier and TypeMethod and Description
public Field
run()

Implements java.security.PrivilegedExceptionAction.run.

Performs the computation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fieldNameback to summary
private final String fieldName
javaClassback to summary
private final Class<?> javaClass
shouldSetAccessibleback to summary
private final boolean shouldSetAccessible

Constructor Detail

PrivilegedGetDeclaredFieldback to summary
public PrivilegedGetDeclaredField(Class<?> javaClass, String fieldName, boolean shouldSetAccessible)

Method Detail

runback to summary
public Field run() throws NoSuchFieldException

Implements java.security.PrivilegedExceptionAction.run.

Doc from java.security.PrivilegedExceptionAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:Field

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedExceptionAction should document what (if anything) this value represents.

Annotations
@Override