Class EnvironmentVarsLoader

  • All Implemented Interfaces:
    ConfigLoader

    public final class EnvironmentVarsLoader
    extends java.lang.Object
    implements ConfigLoader
    Loads Environment Variables from EnvironmentConfigSource.
    • Constructor Detail

      • EnvironmentVarsLoader

        public EnvironmentVarsLoader()
        Construct a default Environment Variables Loader using the default path lexer for "_" separated paths.
      • EnvironmentVarsLoader

        public EnvironmentVarsLoader​(SentenceLexer lexer,
                                     ConfigParser parser)
        Constructor for Environment Variables Loader.
        Parameters:
        lexer - how to create the tokens for the variables.
        parser - parser for Environment Variables
    • Method Detail

      • name

        public java.lang.String name()
        Description copied from interface: ConfigLoader
        Name of the config loader.
        Specified by:
        name in interface ConfigLoader
        Returns:
        name
      • accepts

        public boolean accepts​(java.lang.String format)
        Description copied from interface: ConfigLoader
        True if the config loader accepts the format.
        Specified by:
        accepts in interface ConfigLoader
        Parameters:
        format - config format.
        Returns:
        True if the config loader accepts the format.