Class ReadPropertyAction
java.lang.Object
org.wildfly.security.manager.action.ReadPropertyAction
- All Implemented Interfaces:
PrivilegedAction<String>
A privileged action for reading a system property.
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionReadPropertyAction(String propertyName) Construct a new instance.ReadPropertyAction(String propertyName, String defaultValue) Construct a new instance. -
Method Summary
-
Constructor Details
-
ReadPropertyAction
Construct a new instance.- Parameters:
propertyName- the property name to read
-
ReadPropertyAction
Construct a new instance.- Parameters:
propertyName- the property name to readdefaultValue- the value to use if the property is not present (nullfor none)
-
-
Method Details
-
run
- Specified by:
runin interfacePrivilegedAction<String>
-