@FunctionalInterface
public interface ConfigMapperProvider
ConfigMappers each of which converts a Config
subtree to a specific Java type.
The config system automatically loads ConfigMapperProviders using the
Java ServiceLoader mechanism, and by default the config
system automatically registers all ConfigMappers 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 and Description |
|---|---|
static int |
PRIORITY
Default priority of the mapper provider if registered by
Config.Builder automatically. |
| Modifier and Type | Method and 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.
ConfigMappers, never nullCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.