Class AbstractConfig

    • Constructor Detail

      • AbstractConfig

        public AbstractConfig()
    • Method Detail

      • clearCache

        public void clearCache()
        Description copied from interface: ConfigIntf
        Clears internal cache. No need to call it. Method purely to use within tests.
        Specified by:
        clearCache in interface ConfigIntf
      • notifyListeners

        protected void notifyListeners​(java.lang.String key,
                                       java.lang.String oldValue,
                                       java.lang.String newValue)
      • getParametersMatching

        public final java.util.Map<java.lang.String,​java.lang.String> getParametersMatching​(java.lang.String keyRegExp)
        Specified by:
        getParametersMatching in interface ConfigIntf
      • getBoolean

        public boolean getBoolean​(java.lang.String key,
                                  boolean def)
        Specified by:
        getBoolean in interface ConfigIntf
      • getInt

        public int getInt​(java.lang.String key,
                          int def)
                   throws java.lang.NumberFormatException
        Specified by:
        getInt in interface ConfigIntf
        Throws:
        java.lang.NumberFormatException
      • getLong

        public long getLong​(java.lang.String key,
                            long def)
                     throws java.lang.NumberFormatException
        Specified by:
        getLong in interface ConfigIntf
        Throws:
        java.lang.NumberFormatException
      • getDouble

        public double getDouble​(java.lang.String key,
                                double def)
                         throws java.lang.NumberFormatException
        Specified by:
        getDouble in interface ConfigIntf
        Throws:
        java.lang.NumberFormatException
      • getString

        public java.lang.String getString​(java.lang.String key,
                                          java.lang.String def)
        Specified by:
        getString in interface ConfigIntf
      • getChar

        public char getChar​(java.lang.String key,
                            char def)
                     throws java.lang.IndexOutOfBoundsException
        Specified by:
        getChar in interface ConfigIntf
        Throws:
        java.lang.IndexOutOfBoundsException