| Package | Description |
|---|---|
| io.helidon.config |
Provides interfaces and classes for loading and working with immutable, tree-structured
configuration data.
|
| io.helidon.config.etcd |
Etcd configuration source.
|
| io.helidon.config.git |
Git configuration source.
|
| io.helidon.config.spi |
Configuration SPI that defines the behavior developers can implement to extend the config system.
|
| Modifier and Type | Method | Description |
|---|---|---|
T |
ConfigMapper.apply(Config config) |
Maps a configuration hierarchy to a Java representation.
|
default <T> T |
Config.as(java.lang.Class<? extends T> type) |
Returns typed value as a specified type.
|
default <T> T |
Config.as(java.lang.Class<? extends T> type,
T defaultValue) |
Returns typed value as a specified type.
|
default boolean |
Config.asBoolean() |
Returns a
boolean value of configuration node if the node is Config.Type.VALUE
and original Config.value() can be mapped to. |
default boolean |
Config.asBoolean(boolean defaultValue) |
Returns a
boolean value of configuration node if the node is Config.Type.VALUE
and original Config.value() can be mapped to. |
default double |
Config.asDouble() |
Returns a
double value of configuration node if the node is Config.Type.VALUE
and original Config.value() can be mapped to. |
default double |
Config.asDouble(double defaultValue) |
Returns a
double value of configuration node if the node is Config.Type.VALUE
and original Config.value() can be mapped to. |
default int |
Config.asInt() |
Returns a
int value of configuration node if the node is Config.Type.VALUE
and original Config.value() can be mapped to. |
default int |
Config.asInt(int defaultValue) |
Returns a
int value of configuration node if the node is Config.Type.VALUE
and original Config.value() can be mapped to. |
default <T> java.util.List<T> |
Config.asList(java.lang.Class<? extends T> type) |
Returns list of specified type.
|
default <T> java.util.List<T> |
Config.asList(java.lang.Class<? extends T> type,
java.util.List<T> defaultValue) |
Returns list of specified type.
|
default long |
Config.asLong() |
Returns a
long value of configuration node if the node is Config.Type.VALUE
and original Config.value() can be mapped to. |
default long |
Config.asLong(long defaultValue) |
Returns a
long value of configuration node if the node is Config.Type.VALUE
and original Config.value() can be mapped to. |
default java.util.List<Config> |
Config.asNodeList() |
Returns a list of child
Config nodes if the node is Config.Type.OBJECT. |
default java.util.List<Config> |
Config.asNodeList(java.util.List<Config> defaultValue) |
Returns a list of child
Config nodes if the node is Config.Type.OBJECT. |
<T> java.util.Optional<T> |
Config.asOptional(java.lang.Class<? extends T> type) |
Returns typed value as a specified type.
|
default java.util.Optional<java.lang.Boolean> |
Config.asOptionalBoolean() |
Maps the node
Config.value() to Optional. |
default java.util.OptionalDouble |
Config.asOptionalDouble() |
Maps the node
Config.value() to OptionalDouble. |
default java.util.OptionalInt |
Config.asOptionalInt() |
Maps the node
Config.value() to OptionalInt. |
<T> java.util.Optional<java.util.List<T>> |
Config.asOptionalList(java.lang.Class<? extends T> type) |
Returns list of specified type (single values as well as objects).
|
default java.util.OptionalLong |
Config.asOptionalLong() |
Maps the node
Config.value() to OptionalLong. |
default java.util.Optional<java.util.List<Config>> |
Config.asOptionalNodeList() |
Returns a list of child
Config nodes if the node is Config.Type.OBJECT. |
default java.util.Optional<java.lang.String> |
Config.asOptionalString() |
|
default java.util.Optional<java.util.List<java.lang.String>> |
Config.asOptionalStringList() |
Returns list of
String. |
default java.lang.String |
Config.asString() |
Returns a
String value of configuration node if the node is Config.Type.VALUE. |
default java.lang.String |
Config.asString(java.lang.String defaultValue) |
Returns a
String value of configuration node if the node is Config.Type.VALUE. |
default java.util.List<java.lang.String> |
Config.asStringList() |
|
default java.util.List<java.lang.String> |
Config.asStringList(java.util.List<java.lang.String> defaultValue) |
|
static ConfigFilters.ValueResolvingBuilder |
ConfigFilters.ValueResolvingBuilder.from(Config metaConfig) |
Initializes config filter instance from configuration properties.
|
static PollingStrategies.ScheduledBuilder |
PollingStrategies.ScheduledBuilder.from(Config metaConfig) |
Initializes polling strategy instance from configuration properties.
|
static RetryPolicies.Builder |
RetryPolicies.Builder.from(Config metaConfig) |
Initializes retry policy instance from configuration properties.
|
default <T> T |
Config.map(ConfigMapper<? extends T> mapper) |
Returns typed value as a using specified config hierarchy mapper.
|
default <T> T |
Config.map(ConfigMapper<? extends T> mapper,
T defaultValue) |
Returns typed value as a using specified config hierarchy mapper.
|
default <T> T |
Config.map(java.util.function.Function<java.lang.String,? extends T> mapper) |
Returns typed value as a using specified type mapper.
|
default <T> T |
Config.map(java.util.function.Function<java.lang.String,? extends T> mapper,
T defaultValue) |
Returns typed value as a using specified type mapper.
|
default <T> java.util.List<T> |
Config.mapList(ConfigMapper<? extends T> mapper) |
Returns typed list of type provided by specified type mapper.
|
default <T> java.util.List<T> |
Config.mapList(ConfigMapper<? extends T> mapper,
java.util.List<T> defaultValue) |
Returns typed list of type provided by specified type mapper.
|
default <T> java.util.List<T> |
Config.mapList(java.util.function.Function<java.lang.String,? extends T> mapper) |
Returns typed list of type provided by specified config hierarchy mapper.
|
default <T> java.util.List<T> |
Config.mapList(java.util.function.Function<java.lang.String,? extends T> mapper,
java.util.List<T> defaultValue) |
Returns typed list of type provided by specified config hierarchy mapper.
|
default <T> java.util.Optional<T> |
Config.mapOptional(ConfigMapper<? extends T> mapper) |
Returns typed value as a using specified type mapper.
|
default <T> java.util.Optional<T> |
Config.mapOptional(java.util.function.Function<java.lang.String,? extends T> mapper) |
Returns typed value as a using specified type mapper.
|
default <T> java.util.Optional<java.util.List<T>> |
Config.mapOptionalList(ConfigMapper<? extends T> mapper) |
Returns typed list of type (single values as well as objects) provided by specified type mapper.
|
default <T> java.util.Optional<java.util.List<T>> |
Config.mapOptionalList(java.util.function.Function<java.lang.String,? extends T> mapper) |
Returns typed list of type (single values as well as objects) provided by specified type mapper.
|
java.util.Optional<java.util.List<Config>> |
Config.nodeList() |
Returns a list of child
Config nodes if the node is Config.Type.OBJECT. |
java.util.Optional<java.lang.String> |
Config.value() |
| Modifier and Type | Method | Description |
|---|---|---|
static EtcdConfigSourceBuilder |
EtcdConfigSourceBuilder.from(Config metaConfig) |
Initializes config source instance from meta configuration properties,
see
ConfigSources.load(Config). |
| Modifier and Type | Method | Description |
|---|---|---|
static GitConfigSourceBuilder |
GitConfigSourceBuilder.from(Config metaConfig) |
Initializes config source instance from meta configuration properties,
see
ConfigSources.load(Config). |
| Modifier and Type | Method | Description |
|---|---|---|
static ConfigSource |
ConfigSource.from(Config metaConfig) |
Initializes a
ConfigSource from meta-configuration. |
static RetryPolicy |
RetryPolicy.from(Config metaConfig) |
Constructs a
RetryPolicy from meta-configuration. |
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.