Class GetSystemPropertyAction

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

    @Enhance
    public class GetSystemPropertyAction
    extends java.lang.Object
    implements java.security.PrivilegedAction<java.lang.String>
    An action for reading a system property as a privileged action.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String key
      The property key.
    • Constructor Summary

      Constructors 
      Constructor Description
      GetSystemPropertyAction​(java.lang.String key)
      Creates a new action for reading a system property.
    • Method Summary

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

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

      • key

        private final java.lang.String key
        The property key.
    • Constructor Detail

      • GetSystemPropertyAction

        public GetSystemPropertyAction​(java.lang.String key)
        Creates a new action for reading a system property.
        Parameters:
        key - The property key.
    • Method Detail

      • run

        public java.lang.String run()
        Specified by:
        run in interface java.security.PrivilegedAction<java.lang.String>