Class OverrideConnectorConfig
java.lang.Object
io.smallrye.reactive.messaging.providers.impl.ConnectorConfig
io.smallrye.reactive.messaging.providers.impl.OverrideConnectorConfig
- All Implemented Interfaces:
org.eclipse.microprofile.config.Config
Represents a configuration class that allows overriding specific properties for a connector.
If a nested-channel is defined, property lookups will be in the following order
- If nested-channel is given try [prefix].[channel].[nested-channel].[property-key]
- If an override function is given for a property-key, calls it converts the return value
- Calls the
ConnectorConfigbase function
getOriginalValue(String, Class) allows accessing the connector config without override.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.smallrye.reactive.messaging.providers.impl.ConnectorConfig
ConnectorConfig.ConfigValueImpl -
Field Summary
Fields inherited from class io.smallrye.reactive.messaging.providers.impl.ConnectorConfig
BROADCAST_PROPERTY, CHANNEL_ENABLED_PROPERTY, channelPrefix, connector, MERGE_PROPERTY, name, overall, prefixFields inherited from interface org.eclipse.microprofile.config.Config
PROFILE, PROPERTY_EXPRESSIONS_ENABLED -
Constructor Summary
ConstructorsConstructorDescriptionOverrideConnectorConfig(String prefix, org.eclipse.microprofile.config.Config overall, String channel, String nestedChannel) OverrideConnectorConfig(String prefix, org.eclipse.microprofile.config.Config overall, String channel, String nestedChannel, Map<String, Function<OverrideConnectorConfig, Object>> overrides) OverrideConnectorConfig(String prefix, org.eclipse.microprofile.config.Config overall, String channel, Map<String, Function<OverrideConnectorConfig, Object>> overrides) -
Method Summary
Modifier and TypeMethodDescription<T> Optional<T>getOptionalValue(String propertyName, Class<T> propertyType) <T> Optional<T>getOriginalValue(String propertyName, Class<T> propertyType) Gets the lists of config keys for the given connector.<T> Tprotected StringnestedChannelKey(String keyName) Methods inherited from class io.smallrye.reactive.messaging.providers.impl.ConnectorConfig
channelKey, channelPrefix, connectorKey, convert, convertOptional, getConfigSources, getConfigValue, getConverter, nameExists, toAlpha, unwrapMethods 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
-
OverrideConnectorConfig
-
OverrideConnectorConfig
-
OverrideConnectorConfig
-
-
Method Details
-
nestedChannelKey
-
getOriginalValue
-
getValue
- Specified by:
getValuein interfaceorg.eclipse.microprofile.config.Config- Overrides:
getValuein classConnectorConfig
-
getOptionalValue
- Specified by:
getOptionalValuein interfaceorg.eclipse.microprofile.config.Config- Overrides:
getOptionalValuein classConnectorConfig
-
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- Overrides:
getPropertyNamesin classConnectorConfig- Returns:
- the list of keys
-