Class OverrideConfig
java.lang.Object
io.smallrye.reactive.messaging.providers.impl.OverrideConfig
- All Implemented Interfaces:
org.eclipse.microprofile.config.Config
Represents a configuration class that allows overriding specific properties for a connector.
If an override is defined for a property, it is used first.
Otherwise, the lookup is delegated to the overall config.
- See Also:
-
Field Summary
Fields inherited from interface org.eclipse.microprofile.config.Config
PROFILE, PROPERTY_EXPRESSIONS_ENABLED -
Constructor Summary
ConstructorsConstructorDescriptionOverrideConfig(org.eclipse.microprofile.config.Config overall, Map<String, Function<OverrideConfig, Object>> overrides) -
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) <T> Optional<T> getOriginalValue(String propertyName, Class<T> propertyType) Access the original value from the delegate without overrides or nested channel logic.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
-
OverrideConfig
public OverrideConfig(org.eclipse.microprofile.config.Config overall, Map<String, Function<OverrideConfig, Object>> overrides)
-
-
Method Details
-
getOriginalValue
Access the original value from the delegate without overrides or nested channel logic. -
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
-