Class PrivilegedGetSystemProperty
- java.lang.Object
-
- org.eclipse.persistence.internal.security.PrivilegedGetSystemProperty
-
- All Implemented Interfaces:
PrivilegedAction<String>
public class PrivilegedGetSystemProperty extends Object implements PrivilegedAction<String>
INTERNAL: RetrieveSystem
property with privileges enabled.
-
-
Constructor Summary
Constructors Constructor Description PrivilegedGetSystemProperty(String key)
INTERNAL: Creates an instance ofSystem
property getter with privileges enabled.PrivilegedGetSystemProperty(String key, String def)
INTERNAL: Creates an instance ofSystem
property getter with privileges enabled.
-
-
-
Constructor Detail
-
PrivilegedGetSystemProperty
public PrivilegedGetSystemProperty(String key)
INTERNAL: Creates an instance ofSystem
property getter with privileges enabled. SelectsSystem
property getter without default value to be executed so getter will returnnull
if property withkey
does not exist.- Parameters:
key
- The name of theSystem
property.
-
PrivilegedGetSystemProperty
public PrivilegedGetSystemProperty(String key, String def)
INTERNAL: Creates an instance ofSystem
property getter with privileges enabled. SelectsSystem
property getter with default value to be executed so getter will returndef
if property withkey
does not exist.- Parameters:
key
- The name of theSystem
property.- Since:
- 2.7
-
-
Method Detail
-
run
public String run()
INTERNAL: PerformsSystem
property retrieval. This method will be called byAccessController.doPrivileged(PrivilegedAction)
after enabling privileges.- Specified by:
run
in interfacePrivilegedAction<String>
- Returns:
- The
String
value of the system property.
-
-