@Priority(value=1000) public class ObjectConfigMapperProvider extends Object implements ConfigMapperProvider
PRIORITY| Constructor and Description |
|---|
ObjectConfigMapperProvider() |
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<Function<Config,T>> |
mapper(Class<T> type)
A simple mapping function from config node to a typed value based on the expected class.
|
Map<Class<?>,Function<Config,?>> |
mappers()
Returns a map of mapper functions associated with appropriate target type (
Class<?>. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenericTypeMappers, mapperpublic Map<Class<?>,Function<Config,?>> mappers()
ConfigMapperProviderClass<?>.
Mappers will by automatically registered by Config.Builder during
bootstrapping of Config unless
disableld.
mappers in interface ConfigMapperProvidernull, though this may return an empty map if
ConfigMapperProvider.mapper(Class) is used insteadpublic <T> Optional<Function<Config,T>> mapper(Class<T> type)
ConfigMapperProviderConfigMapperProvider.mapper(GenericType).mapper in interface ConfigMapperProviderT - type returned from conversiontype - type of the expected mapping resultCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.