Class SystemPropertyAction

    • Method Detail

      • getProperty

        public static String getProperty​(String name)
      • getPropertyOrNull

        public static String getPropertyOrNull​(String name)
        Get the system property via the AccessController, but if a SecurityException is raised, just return null;
        Parameters:
        name -
      • getInteger

        public static int getInteger​(String name,
                                     int def)
        Get the integer system property via the AccessController, but if a SecurityException is raised, just return the default;
        Parameters:
        name - - system property name
        def - - the default value if the system property does not exist or cannot be acquired