T - type of the config values to deserializeR - resulting type of the deserialization of these values@FunctionalInterface
public interface ValueDeserializerProvider<T,R>
ValueDeserializer to deserialize configuration values.
The provide(Class, TypeConstraint) method returns null when
it cannot provide a deserializer for the given value type and result type.
In that case, other providers will be called, until a suitable deserializer is found
or all the providers have been tried.
| Modifier and Type | Method and Description |
|---|---|
ValueDeserializer<T,R> |
provide(java.lang.Class<?> valueClass,
TypeConstraint resultType)
Provides a deserializer for a value of class
valueClass and a constraint
on the result type. |
ValueDeserializer<T,R> provide(java.lang.Class<?> valueClass, TypeConstraint resultType)
valueClass and a constraint
on the result type. The returned deserializer must be able to handle a value of this
type and to produce a value that satisfies the resultType constraint.valueClass - class of the config values to deserializeresultType - constraint that the deserialization result must satisfynull to try the next providerValueDeserializerProvider