Class ConfigUtils.BuildTimeEnvConfigSource

  • All Implemented Interfaces:
    Serializable, org.eclipse.microprofile.config.spi.ConfigSource
    Enclosing class:
    ConfigUtils

    static class ConfigUtils.BuildTimeEnvConfigSource
    extends io.smallrye.config.EnvConfigSource
    We override the EnvConfigSource, because we don't want the nothing back from getPropertiesNames at build time. The mapping is one way and there is no way to map them back.
    • Constructor Detail

      • BuildTimeEnvConfigSource

        BuildTimeEnvConfigSource()
      • BuildTimeEnvConfigSource

        BuildTimeEnvConfigSource​(Map<String,​String> propertyMap,
                                 int ordinal)
    • Method Detail

      • getPropertyNames

        public Set<String> getPropertyNames()
        Specified by:
        getPropertyNames in interface org.eclipse.microprofile.config.spi.ConfigSource
        Overrides:
        getPropertyNames in class io.smallrye.config.common.MapBackedConfigSource
      • getName

        public String getName()
        Specified by:
        getName in interface org.eclipse.microprofile.config.spi.ConfigSource
        Overrides:
        getName in class io.smallrye.config.common.AbstractConfigSource