Package io.quarkus.runtime
Class ValueRegistryConfigSource
java.lang.Object
io.smallrye.config.common.AbstractConfigSource
io.quarkus.runtime.ValueRegistryConfigSource
- All Implemented Interfaces:
Serializable,org.eclipse.microprofile.config.spi.ConfigSource
public class ValueRegistryConfigSource
extends io.smallrye.config.common.AbstractConfigSource
A
ConfigSource to bridge between the Config System and
ValueRegistry. This allows the use of SmallRyeConfig to look up values from
ValueRegistry.
While ValueRegistry shouldn't be exposed in the Config System, this is intended to work as a temporary
compatibility layer, since until the introduction of ValueRegistry, the norm was to use
SmallRyeConfig and System Properties to relay this kind of information, which will be
moved to ValueRegistry, so we need this not to break code that is still relying on the Config system.
This should be kept until we decide on an alternate solution in the discussion #46915.
- See Also:
-
Field Summary
Fields inherited from interface org.eclipse.microprofile.config.spi.ConfigSource
CONFIG_ORDINAL, DEFAULT_ORDINAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.smallrye.config.SmallRyeConfigBuilderCustomizercustomizer(io.quarkus.registry.ValueRegistry valueRegistry) Methods inherited from class io.smallrye.config.common.AbstractConfigSource
getName, getOrdinal, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.microprofile.config.spi.ConfigSource
getProperties
-
Constructor Details
-
ValueRegistryConfigSource
ValueRegistryConfigSource(io.quarkus.registry.ValueRegistry valueRegistry)
-
-
Method Details
-
getPropertyNames
-
getValue
-
customizer
public static io.smallrye.config.SmallRyeConfigBuilderCustomizer customizer(io.quarkus.registry.ValueRegistry valueRegistry)
-