| Package | Description |
|---|---|
| io.helidon.config |
Provides interfaces and classes for loading and working with immutable, tree-structured
configuration data.
|
| io.helidon.config.spi |
Configuration SPI that defines the behavior developers can implement to extend the config system.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> ConfigMapper<T> |
ConfigMappers.from(java.lang.Class<T> type,
java.lang.Class<?> builderType)
Creates new instance of
ConfigMapper that creates new instance of type
using specified builder that will be initialized from appropriate Config node. |
| Modifier and Type | Method and Description |
|---|---|
<T> Config.Builder |
Config.Builder.addMapper(java.lang.Class<T> type,
ConfigMapper<T> mapper)
Registers contextual
ConfigMapper for specified type. |
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> 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.function.Supplier<java.util.List<T>> |
Config.mapListSupplier(ConfigMapper<? extends T> mapper)
Returns a supplier of a list of a type provided by a specified type mapper.
|
default <T> java.util.function.Supplier<java.util.List<T>> |
Config.mapListSupplier(ConfigMapper<? extends T> mapper,
java.util.List<T> defaultValue)
Returns a supplier of a list of a type provided by a specified type mapper or a default value.
|
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<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.function.Supplier<java.util.Optional<java.util.List<T>>> |
Config.mapOptionalListSupplier(ConfigMapper<? extends T> mapper)
Returns a supplier of an optional typed list of a type (single values as well as objects) provided by a specified type
mapper.
|
default <T> java.util.function.Supplier<java.util.Optional<T>> |
Config.mapOptionalSupplier(ConfigMapper<? extends T> mapper)
Returns a supplier of an optional value, typed using a specified type mapper.
|
default <T> java.util.function.Supplier<T> |
Config.mapSupplier(ConfigMapper<? extends T> mapper)
Returns a supplier of a typed value, using a specified type mapper.
|
default <T> java.util.function.Supplier<T> |
Config.mapSupplier(ConfigMapper<? extends T> mapper,
T defaultValue)
Returns a supplier of a typed value, using a specified type mapper or a default value.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.Class<?>,ConfigMapper<?>> |
ConfigMapperProvider.getMappers()
Returns a map of
ConfigMapper instances associated with appropriate target type (Class<?>. |
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.