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

public Class PrivilegedGetSystemProperty

extends Object
implements PrivilegedAction<String>
Class Inheritance
All Implemented Interfaces
java.security.PrivilegedAction
Imports
java.security.AccessController, .PrivilegedAction

INTERNAL: Retrieve System property with privileges enabled.

Field Summary

Modifier and TypeField and Description
private final String
def

A default value of the System property.

private final String
key

The name of the System property.

Constructor Summary

AccessConstructor and Description
public
PrivilegedGetSystemProperty(final String
The name of the System property.
key
)

INTERNAL: Creates an instance of System property getter with privileges enabled.

public
PrivilegedGetSystemProperty(final String
The name of the System property.
key
,
final String def)

INTERNAL: Creates an instance of System property getter with privileges enabled.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The String value of the system property.
run
()

Implements java.security.PrivilegedAction.run.

INTERNAL: Performs System property retrieval.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defback to summary
private final String def

A default value of the System property.

keyback to summary
private final String key

The name of the System property.

Constructor Detail

PrivilegedGetSystemPropertyback to summary
public PrivilegedGetSystemProperty(final String key)

INTERNAL: Creates an instance of System property getter with privileges enabled. Selects System property getter without default value to be executed so getter will return null if property with key does not exist.

Parameters
key:String

The name of the System property.

PrivilegedGetSystemPropertyback to summary
public PrivilegedGetSystemProperty(final String key, final String def)

INTERNAL: Creates an instance of System property getter with privileges enabled. Selects System property getter with default value to be executed so getter will return def if property with key does not exist.

Parameters
key:String

The name of the System property.

Since
2.7

Method Detail

runback to summary
public String run()

Implements java.security.PrivilegedAction.run.

INTERNAL: Performs System property retrieval. This method will be called by AccessController#doPrivileged(PrivilegedAction) after enabling privileges.

Returns:String

The String value of the system property.

Annotations
@Override