Top Description Fields Constructors Methods
net.bytebuddy.utility.privilege

public Class SetAccessibleAction<T extends java.lang.reflect.AccessibleObject>

extends Object
implements PrivilegedAction<T extends AccessibleObject>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction
Annotations
@Enhance
Type Parameters
<T>
The type of the accessible object.
Imports
net.bytebuddy.build.HashCodeAndEqualsPlugin, java.lang.reflect.AccessibleObject, java.security.PrivilegedAction

An action for making an AccessibleObject accessible.

Field Summary

Modifier and TypeField and Description
private final T
accessibleObject

The accessible object.

Constructor Summary

AccessConstructor and Description
public
SetAccessibleAction(T
The accessible object.
accessibleObject
)

Creates a new access action.

Method Summary

Modifier and TypeMethod and Description
public T
run()

Implements java.security.PrivilegedAction.run.

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

Field Detail

accessibleObjectback to summary
private final T accessibleObject

The accessible object.

Constructor Detail

SetAccessibleActionback to summary
public SetAccessibleAction(T accessibleObject)

Creates a new access action.

Parameters
accessibleObject:T

The accessible object.

Method Detail

runback to summary
public T run()

Implements java.security.PrivilegedAction.run.

Doc from java.security.PrivilegedAction.run.

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

Returns:T

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