Module 
Package org.xnio

Class ReadPropertyAction

  • All Implemented Interfaces:
    java.security.PrivilegedAction<java.lang.String>

    public final class ReadPropertyAction
    extends java.lang.Object
    implements java.security.PrivilegedAction<java.lang.String>
    A simple property-read privileged action.
    Author:
    David M. Lloyd
    • Constructor Summary

      Constructors 
      Constructor Description
      ReadPropertyAction​(java.lang.String propertyName, java.lang.String defaultValue)
      Construct a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String run()
      Run the action.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReadPropertyAction

        public ReadPropertyAction​(java.lang.String propertyName,
                                  java.lang.String defaultValue)
        Construct a new instance.
        Parameters:
        propertyName - the property name
        defaultValue - the default value
    • Method Detail

      • run

        public java.lang.String run()
        Run the action.
        Specified by:
        run in interface java.security.PrivilegedAction<java.lang.String>
        Returns:
        the property or default value