Class ReadPropertyAction

java.lang.Object
org.wildfly.security.manager.action.ReadPropertyAction
All Implemented Interfaces:
PrivilegedAction<String>

public final class ReadPropertyAction extends Object implements PrivilegedAction<String>
A privileged action for reading a system property.
Author:
David M. Lloyd
  • Constructor Details

    • ReadPropertyAction

      public ReadPropertyAction(String propertyName)
      Construct a new instance.
      Parameters:
      propertyName - the property name to read
    • ReadPropertyAction

      public ReadPropertyAction(String propertyName, String defaultValue)
      Construct a new instance.
      Parameters:
      propertyName - the property name to read
      defaultValue - the value to use if the property is not present (null for none)
  • Method Details