Class ClowderConfigSource
java.lang.Object
com.redhat.cloud.common.clowder.configsource.ClowderConfigSource
- All Implemented Interfaces:
org.eclipse.microprofile.config.spi.ConfigSource
public class ClowderConfigSource
extends Object
implements org.eclipse.microprofile.config.spi.ConfigSource
A Config source that is using the ClowderAppConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.eclipse.microprofile.config.spi.ConfigSource
CONFIG_ORDINAL, DEFAULT_ORDINAL -
Constructor Summary
ConstructorsConstructorDescriptionClowderConfigSource(String configFile, Map<String, io.smallrye.config.ConfigValue> exProp) Constructor for ClowderConfigSource. -
Method Summary
-
Field Details
-
CLOWDER_CONFIG_SOURCE
- See Also:
-
KAFKA_BOOTSTRAP_SERVERS
- See Also:
-
KAFKA_SASL_JAAS_CONFIG_KEY
- See Also:
-
KAFKA_SASL_MECHANISM_KEY
- See Also:
-
KAFKA_SECURITY_PROTOCOL_KEY
- See Also:
-
KAFKA_SSL_TRUSTSTORE_LOCATION_KEY
- See Also:
-
KAFKA_SSL_TRUSTSTORE_TYPE_KEY
- See Also:
-
CAMEL_KAFKA_BROKERS
- See Also:
-
CAMEL_KAFKA_SASL_JAAS_CONFIG_KEY
- See Also:
-
CAMEL_KAFKA_SASL_MECHANISM_KEY
- See Also:
-
CAMEL_KAFKA_SECURITY_PROTOCOL_KEY
- See Also:
-
CAMEL_KAFKA_SSL_TRUSTSTORE_LOCATION_KEY
- See Also:
-
CAMEL_KAFKA_SSL_TRUSTSTORE_TYPE_KEY
- See Also:
-
KAFKA_SSL_TRUSTSTORE_TYPE_VALUE
- See Also:
-
-
Constructor Details
-
ClowderConfigSource
Constructor for ClowderConfigSource.
- Parameters:
configFile- Name/Path of a file to read the config from.exProp-Mapcontaining the existing properties from e.g. application.properties.
-
-
Method Details
-
getProperties
- Specified by:
getPropertiesin interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
getPropertyNames
- Specified by:
getPropertyNamesin interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
getOrdinal
public int getOrdinal()- Specified by:
getOrdinalin interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
getValue
Return a value for a config property. We need to look at the clowder provided data and eventually replace the requested values from application.properties with what clowder provides us, which may be different. If the configfile was bad, we return the existing values.- Specified by:
getValuein interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
getName
- Specified by:
getNamein interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-