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

public Class GetSystemPropertyAction

extends Object
implements PrivilegedAction<String>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction
Annotations
@Enhance
Imports
net.bytebuddy.build.HashCodeAndEqualsPlugin, java.security.PrivilegedAction

An action for reading a system property as a privileged action.

Field Summary

Modifier and TypeField and Description
private final String
key

The property key.

Constructor Summary

AccessConstructor and Description
public
GetSystemPropertyAction(String
The property key.
key
)

Creates a new action for reading a system property.

Method Summary

Modifier and TypeMethod and Description
public String
run()

Implements java.security.PrivilegedAction.run.

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

Field Detail

keyback to summary
private final String key

The property key.

Constructor Detail

GetSystemPropertyActionback to summary
public GetSystemPropertyAction(String key)

Creates a new action for reading a system property.

Parameters
key:String

The property key.

Method Detail

runback to summary
public String 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:String

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.