Class PrivilegedGetSystemProperty
- java.lang.Object
-
- org.eclipse.persistence.internal.security.PrivilegedGetSystemProperty
-
- All Implemented Interfaces:
java.security.PrivilegedAction<java.lang.String>
public class PrivilegedGetSystemProperty extends java.lang.Object implements java.security.PrivilegedAction<java.lang.String>INTERNAL: RetrieveSystemproperty with privileges enabled.
-
-
Constructor Summary
Constructors Constructor Description PrivilegedGetSystemProperty(java.lang.String key)INTERNAL: Creates an instance ofSystemproperty getter with privileges enabled.PrivilegedGetSystemProperty(java.lang.String key, java.lang.String def)INTERNAL: Creates an instance ofSystemproperty getter with privileges enabled.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringrun()INTERNAL: PerformsSystemproperty retrieval.
-
-
-
Constructor Detail
-
PrivilegedGetSystemProperty
public PrivilegedGetSystemProperty(java.lang.String key)
INTERNAL: Creates an instance ofSystemproperty getter with privileges enabled. SelectsSystemproperty getter without default value to be executed so getter will returnnullif property withkeydoes not exist.- Parameters:
key- The name of theSystemproperty.
-
PrivilegedGetSystemProperty
public PrivilegedGetSystemProperty(java.lang.String key, java.lang.String def)INTERNAL: Creates an instance ofSystemproperty getter with privileges enabled. SelectsSystemproperty getter with default value to be executed so getter will returndefif property withkeydoes not exist.- Parameters:
key- The name of theSystemproperty.- Since:
- 2.7
-
-
Method Detail
-
run
public java.lang.String run()
INTERNAL: PerformsSystemproperty retrieval. This method will be called byAccessController.doPrivileged(PrivilegedAction)after enabling privileges.- Specified by:
runin interfacejava.security.PrivilegedAction<java.lang.String>- Returns:
- The
Stringvalue of the system property.
-
-