Class BasicConfigurationHelper<T>

    • Method Detail

      • getBean

        public T getBean()
        Description copied from interface: ConfigurationDataRetriever
        Returns the configuration bean used by this data retriever, typically for manual handling and/or troubleshooting purposes.
        Specified by:
        getBean in interface ConfigurationDataRetriever<T>
        Returns:
        the configuration bean (Note: it can be null if the Configuration is marked as optional)
      • getBoolean

        public Boolean getBoolean​(String key)
        Description copied from interface: ConfigurationDataRetriever
        Returns the Boolean object associated with the specified key.
        Specified by:
        getBoolean in interface ConfigurationDataRetriever<T>
        Parameters:
        key - the object key (some implementations may also accept a path expression, e.g: JSONPath)
        Returns:
        the Boolean object associated with the specified key; null if not found
      • getMandatoryBoolean

        public Boolean getMandatoryBoolean​(String key)
        Description copied from interface: ConfigurationDataRetriever
        Returns the Boolean object associated with the specified key, throwing an exception if not found.
        Specified by:
        getMandatoryBoolean in interface ConfigurationDataRetriever<T>
        Parameters:
        key - the object key (some implementations may also accept a path expression, e.g: JSONPath)
        Returns:
        the Boolean value associated with the specified key; never null
      • getInteger

        public Integer getInteger​(String key)
        Description copied from interface: ConfigurationDataRetriever
        Returns the Integer object associated with the specified key.
        Specified by:
        getInteger in interface ConfigurationDataRetriever<T>
        Parameters:
        key - the object key (some implementations may also accept a path expression, e.g: JSONPath
        Returns:
        the Integer object associated with the specified key; null if not found
      • getMandatoryInteger

        public Integer getMandatoryInteger​(String key)
        Description copied from interface: ConfigurationDataRetriever
        Returns the Integer object associated with the specified key, throwing an exception if not found.
        Specified by:
        getMandatoryInteger in interface ConfigurationDataRetriever<T>
        Parameters:
        key - the object key (some implementations may also accept a path expression, e.g: JSONPath)
        Returns:
        the Integer object associated with the specified key; never null
      • getLong

        public Long getLong​(String key)
        Description copied from interface: ConfigurationDataRetriever
        Returns the Long object associated with the specified key.
        Specified by:
        getLong in interface ConfigurationDataRetriever<T>
        Parameters:
        key - the object key (some implementations may also accept a path expression, e.g: JSONPath
        Returns:
        the Long object associated with the specified key; null if not found
      • getMandatoryLong

        public Long getMandatoryLong​(String key)
        Description copied from interface: ConfigurationDataRetriever
        Returns the Long object associated with the specified key, throwing an exception if not found.
        Specified by:
        getMandatoryLong in interface ConfigurationDataRetriever<T>
        Parameters:
        key - the object key (some implementations may also accept a path expression, e.g: JSONPath)
        Returns:
        the Long object associated with the specified key; never null
      • getDouble

        public Double getDouble​(String key)
        Description copied from interface: ConfigurationDataRetriever
        Returns the Double object associated with the specified key.
        Specified by:
        getDouble in interface ConfigurationDataRetriever<T>
        Parameters:
        key - the object key (some implementations may also accept a path expression, e.g: JSONPath
        Returns:
        the Double object associated with the specified key; null if not found
      • getMandatoryDouble

        public Double getMandatoryDouble​(String key)
        Description copied from interface: ConfigurationDataRetriever
        Returns the Double object associated with the specified key, throwing an exception if not found.
        Specified by:
        getMandatoryDouble in interface ConfigurationDataRetriever<T>
        Parameters:
        key - the object key (some implementations may also accept a path expression, e.g: JSONPath)
        Returns:
        the Double object associated with the specified key; never null