Class PropertyBasedConfiguration

    • Field Detail

      • systemPropertyPrefix

        public final String systemPropertyPrefix
    • Constructor Detail

      • PropertyBasedConfiguration

        public PropertyBasedConfiguration​(String systemPropertyPrefix,
                                          Map<String,​String> properties)
    • Method Detail

      • getProperty

        public String getProperty​(String propertyName)
        Gets a string property.
      • getProperty

        public String getProperty​(String propertyName,
                                  String defaultValue)
        Gets a string property, or the given default if undefined or blank.
      • getLongProperty

        public long getLongProperty​(String key)
        Gets a long property, or -1 if undefined or blank.
      • getIntProperty

        public int getIntProperty​(String key)
        Gets an integer property, or -1 if undefined or blank.
      • getIntProperty

        public int getIntProperty​(String key,
                                  int defaultValue)
        Gets an integer property, or the given default if undefined or blank.
        Since:
        2023.5
      • getBooleanProperty

        public boolean getBooleanProperty​(String key)
        Gets a boolean property.