Class FallbackConfig
java.lang.Object
io.smallrye.reactive.messaging.providers.impl.FallbackConfig
- All Implemented Interfaces:
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:
-
Field Summary
Fields inherited from interface org.eclipse.microprofile.config.Config
PROFILE, PROPERTY_EXPRESSIONS_ENABLED -
Constructor Summary
ConstructorsConstructorDescriptionFallbackConfig(org.eclipse.microprofile.config.Config overall, Map<String, Object> fallbacks) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> Optional<T> convertOptional(String rawValue, Class<T> propertyType) Iterable<org.eclipse.microprofile.config.spi.ConfigSource> org.eclipse.microprofile.config.ConfigValuegetConfigValue(String propertyName) <T> Optional<org.eclipse.microprofile.config.spi.Converter<T>> getConverter(Class<T> forType) <T> Optional<T> getOptionalValue(String propertyName, Class<T> propertyType) Gets the lists of config keys for the given connector.<T> T<T> TMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.microprofile.config.Config
getOptionalValues, getValues
-
Constructor Details
-
FallbackConfig
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceorg.eclipse.microprofile.config.Config
-
getOptionalValue
- Specified by:
getOptionalValuein interfaceorg.eclipse.microprofile.config.Config
-
convertOptional
-
getConfigValue
- Specified by:
getConfigValuein interfaceorg.eclipse.microprofile.config.Config
-
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:
getPropertyNamesin interfaceorg.eclipse.microprofile.config.Config- Returns:
- the list of keys
-
getConfigSources
- Specified by:
getConfigSourcesin interfaceorg.eclipse.microprofile.config.Config
-
getConverter
public <T> Optional<org.eclipse.microprofile.config.spi.Converter<T>> getConverter(Class<T> forType) - Specified by:
getConverterin interfaceorg.eclipse.microprofile.config.Config
-
unwrap
- Specified by:
unwrapin interfaceorg.eclipse.microprofile.config.Config
-