@FunctionalInterface
public interface ConfigMapperProvider
ConfigMapper
s each of which converts a Config
subtree to a specific Java type.
The config system automatically loads ConfigMapperProvider
s using the
Java ServiceLoader
mechanism, and by default the config
system automatically registers all ConfigMapper
s from all such
providers with every Config.Builder
. The application can suppress
auto-registration of loaded mappers by invoking
Config.Builder.disableMapperServices()
.
Each ConfigMapperProvider
can specify a
Priority
. The default priority is 100.
Modifier and Type | Field | Description |
---|---|---|
static int |
PRIORITY |
Default priority of the mapper provider if registered by
Config.Builder automatically. |
Modifier and Type | Method | Description |
---|---|---|
java.util.Map<java.lang.Class<?>,ConfigMapper<?>> |
getMappers() |
Returns a map of
ConfigMapper instances associated with appropriate target type (Class<?> . |
static final int PRIORITY
Config.Builder
automatically.java.util.Map<java.lang.Class<?>,ConfigMapper<?>> getMappers()
ConfigMapper
instances associated with appropriate target type (Class<?>
.
Mappers will by automatically registered by Config.Builder
during Config
bootstrap
if not disabled
.
ConfigMapper
s, never null
Copyright © 2018 Oracle Corporation. All rights reserved.