java.lang.Object
org.xnio.ReadPropertyAction
- All Implemented Interfaces:
PrivilegedAction<String>
A simple property-read privileged action.
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionReadPropertyAction
(String propertyName, String defaultValue) Construct a new instance. -
Method Summary
-
Constructor Details
-
ReadPropertyAction
Construct a new instance.- Parameters:
propertyName
- the property namedefaultValue
- the default value
-
-
Method Details
-
run
Run the action.- Specified by:
run
in interfacePrivilegedAction<String>
- Returns:
- the property or default value
-