V - type of the config values to serializeR - resulting type of the deserialization of these values@FunctionalInterface
public interface ValueSerializerProvider<V,R>
ValueSerializer to serialize configuration values.
The provide(Class, SerializerContext) method returns null when
it cannot provide a serializer for the given value type.
In that case, other providers will be called, until a suitable serializer is found
or all the providers have been tried.
| Modifier and Type | Method and Description |
|---|---|
ValueSerializer<V,R> |
provide(java.lang.Class<?> valueClass,
SerializerContext ctx)
Provides a serializer for a value of class
valueClass. |
ValueSerializer<V,R> provide(java.lang.Class<?> valueClass, SerializerContext ctx)
valueClass.
The returned serializer must be able to handle a value of this
type.valueClass - class of the config values to serializenull to try the next providerValueSerializerProvider