Package org.joda.beans.ser
Interface SerDeserializerProvider
-
public interface SerDeserializerProvider
Provides access to deserializers.This plugin point allows instances to
SerDeserializer
to be created. Implementations of this interface can introspect the bean type when choosing a deserializer. This allows deserializers to be provided that can handle multiple bean types, for example all beans in a particular package, any bean with a particular supertype or with a particular annotation.In the simple case where an exact match is needed, the class implementing
SerDeserializer
can also implementSerDeserializerProvider
with a singleton constant instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SerDeserializer
findDeserializer(Class<?> beanType)
Finds the deserializer for the specified type.
-
-
-
Method Detail
-
findDeserializer
SerDeserializer findDeserializer(Class<?> beanType)
Finds the deserializer for the specified type.If the type is not known, the implementation must return null.
- Parameters:
beanType
- the type being processed, not null- Returns:
- the deserializer, null if this provider does not support the type
-
-