Class EnvironmentConfig

  • All Implemented Interfaces:
    IndyConfigInfo, org.commonjava.propulsor.config.section.ConfigurationSectionListener<Map<String,​String>>

    @ApplicationScoped
    public class EnvironmentConfig
    extends org.commonjava.propulsor.config.section.MapSectionListener
    implements IndyConfigInfo
    Created by yma on 2019/3/19.
    • Constructor Detail

      • EnvironmentConfig

        public EnvironmentConfig()
    • Method Detail

      • getDefaultConfigFileName

        public String getDefaultConfigFileName()
        Description copied from interface: IndyConfigInfo
        The name of the file to be written in case no configuration is provided, to allow modification of defaults in future executions.
        Specified by:
        getDefaultConfigFileName in interface IndyConfigInfo
        Returns:
        a filename, of the form *.conf (unless it's 'main.conf', in which case it'll be appended to the main config file), which will be written to the etc/indy/conf.d directory.
      • getDefaultConfig

        public InputStream getDefaultConfig()
        Description copied from interface: IndyConfigInfo
        The actual content which should be added to the default configuration file in case no configuration is provided, to allow modification of defaults in future executions.
        Specified by:
        getDefaultConfig in interface IndyConfigInfo
        Returns:
        The content, usually as a result of loading Thread.currentThread().getContextClassLoader().getResourceAsStream("foo")
      • parameter

        public void parameter​(String name,
                              String value)
                       throws org.commonjava.propulsor.config.ConfigurationException
        Specified by:
        parameter in interface org.commonjava.propulsor.config.section.ConfigurationSectionListener<Map<String,​String>>
        Overrides:
        parameter in class org.commonjava.propulsor.config.section.MapSectionListener
        Throws:
        org.commonjava.propulsor.config.ConfigurationException