Class FallbackConfig

java.lang.Object
io.smallrye.reactive.messaging.providers.impl.FallbackConfig
All Implemented Interfaces:
org.eclipse.microprofile.config.Config

public class FallbackConfig extends Object implements org.eclipse.microprofile.config.Config
Represents a configuration class that allows providing fallback values for specific properties for a connector. If a property is not defined in the overall config, the fallback value is used.
See Also:
  • Config
  • Constructor Details

    • FallbackConfig

      public FallbackConfig(org.eclipse.microprofile.config.Config overall, Map<String,Object> fallbacks)
  • Method Details

    • getValue

      public <T> T getValue(String propertyName, Class<T> propertyType)
      Specified by:
      getValue in interface org.eclipse.microprofile.config.Config
    • getOptionalValue

      public <T> Optional<T> getOptionalValue(String propertyName, Class<T> propertyType)
      Specified by:
      getOptionalValue in interface org.eclipse.microprofile.config.Config
    • convertOptional

      protected <T> Optional<T> convertOptional(String rawValue, Class<T> propertyType)
    • getConfigValue

      public org.eclipse.microprofile.config.ConfigValue getConfigValue(String propertyName)
      Specified by:
      getConfigValue in interface org.eclipse.microprofile.config.Config
    • getPropertyNames

      public Iterable<String> getPropertyNames()
      Gets the lists of config keys for the given connector. Note that the list contains property names from the config and env variables. It includes keys from the connector config and channel config.
      Specified by:
      getPropertyNames in interface org.eclipse.microprofile.config.Config
      Returns:
      the list of keys
    • getConfigSources

      public Iterable<org.eclipse.microprofile.config.spi.ConfigSource> getConfigSources()
      Specified by:
      getConfigSources in interface org.eclipse.microprofile.config.Config
    • getConverter

      public <T> Optional<org.eclipse.microprofile.config.spi.Converter<T>> getConverter(Class<T> forType)
      Specified by:
      getConverter in interface org.eclipse.microprofile.config.Config
    • unwrap

      public <T> T unwrap(Class<T> type)
      Specified by:
      unwrap in interface org.eclipse.microprofile.config.Config