Package io.helidon.microprofile.config
Class MpConfigBuilder
- java.lang.Object
-
- io.helidon.microprofile.config.MpConfigBuilder
-
- All Implemented Interfaces:
ConfigBuilder
public class MpConfigBuilder extends Object implements ConfigBuilder
Configuration builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigBuilder
addDefaultSources()
ConfigBuilder
addDiscoveredConverters()
ConfigBuilder
addDiscoveredSources()
Config
build()
MpConfigBuilder
config(Config config)
Set the Helidon config to be used as a "backend" for this MP config.ConfigBuilder
forClassLoader(ClassLoader loader)
<T> ConfigBuilder
withConverter(Class<T> aClass, int ordinal, Converter<T> converter)
ConfigBuilder
withConverters(Converter<?>... converters)
ConfigBuilder
withSources(ConfigSource... sources)
-
-
-
Method Detail
-
addDefaultSources
public ConfigBuilder addDefaultSources()
- Specified by:
addDefaultSources
in interfaceConfigBuilder
-
addDiscoveredSources
public ConfigBuilder addDiscoveredSources()
- Specified by:
addDiscoveredSources
in interfaceConfigBuilder
-
addDiscoveredConverters
public ConfigBuilder addDiscoveredConverters()
- Specified by:
addDiscoveredConverters
in interfaceConfigBuilder
-
forClassLoader
public ConfigBuilder forClassLoader(ClassLoader loader)
- Specified by:
forClassLoader
in interfaceConfigBuilder
-
withSources
public ConfigBuilder withSources(ConfigSource... sources)
- Specified by:
withSources
in interfaceConfigBuilder
-
withConverter
public <T> ConfigBuilder withConverter(Class<T> aClass, int ordinal, Converter<T> converter)
- Specified by:
withConverter
in interfaceConfigBuilder
-
config
public MpConfigBuilder config(Config config)
Set the Helidon config to be used as a "backend" for this MP config.- Parameters:
config
- config instance to query if MP sources do not contain the key- Returns:
- modified builder
-
withConverters
public ConfigBuilder withConverters(Converter<?>... converters)
- Specified by:
withConverters
in interfaceConfigBuilder
-
build
public Config build()
- Specified by:
build
in interfaceConfigBuilder
-
-