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
FieldsFields inherited from interface org.eclipse.microprofile.config.spi.ConfigSource
CONFIG_ORDINAL, DEFAULT_ORDINAL -
Constructor Summary
ConstructorsConstructorDescriptionClowderConfigSource(ClowderConfig root, Map<String, io.smallrye.config.ConfigValue> exProp, List<ClowderPropertyHandler> handlers) Constructor for ClowderConfigSource. -
Method Summary
Modifier and TypeMethodDescriptiongetExistingValue(String configKey) org.jboss.logging.LoggergetName()intReturn a value for a config property.
-
Field Details
-
CLOWDER_CONFIG_SOURCE
- See Also:
-
-
Constructor Details
-
ClowderConfigSource
public ClowderConfigSource(ClowderConfig root, Map<String, io.smallrye.config.ConfigValue> exProp, List<ClowderPropertyHandler> handlers) Constructor for ClowderConfigSource.
- Parameters:
root- The clowder config.exProp-Mapcontaining the existing properties from e.g. application.properties.handlers-
-
-
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
-
getLogger
public org.jboss.logging.Logger getLogger() -
getExistingValue
-
getTrustStorePassword
-
getTrustStorePath
-
getTrustStoreType
-