Class PropertyUtil


  • public class PropertyUtil
    extends Object
    Access properties that are set either via command line "-D" parameters or as environment variables. Command line parameters take precedence over environment variables.
    • Constructor Detail

      • PropertyUtil

        public PropertyUtil()
    • Method Detail

      • isPropertySet

        public static boolean isPropertySet​(String key)
      • getLongProperty

        public static long getLongProperty​(String key,
                                           long defaultValue)
      • getIntProperty

        public static int getIntProperty​(String key,
                                         int defaultValue)
      • getFloatProperty

        public static float getFloatProperty​(String key,
                                             float defaultValue)
      • getDoubleProperty

        public static double getDoubleProperty​(String key,
                                               double defaultValue)
      • getBooleanProperty

        public static boolean getBooleanProperty​(String key,
                                                 boolean defaultValue)