Class EnvConfig

  • All Implemented Interfaces:

    public class EnvConfig
    extends java.lang.Object
    implements Config
    Exposes environment variables as config settings by mapping "section.option" to "SECTION_OPTION". Dashes and periods in the options are converted to underscores, and all characters are upper-cased assuming a US English locale.
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.util.List<java.lang.String>> getAll​(java.lang.String section, java.lang.String option)  
      java.util.Set<java.lang.String> getOptions​(java.lang.String section)  
      java.util.Set<java.lang.String> getSectionNames()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EnvConfig

        public EnvConfig()
    • Method Detail

      • getAll

        public java.util.Optional<java.util.List<java.lang.String>> getAll​(java.lang.String section,
                                                                           java.lang.String option)
        Specified by:
        getAll in interface Config
      • getSectionNames

        public java.util.Set<java.lang.String> getSectionNames()
        Specified by:
        getSectionNames in interface Config
      • getOptions

        public java.util.Set<java.lang.String> getOptions​(java.lang.String section)
        Specified by:
        getOptions in interface Config