- Type Parameters:
T- the base type this factory handles
public interface JsonBindingFactory<T>
Factory interface for creating more complex and universal JSON serializers and deserializers.
-
Method Summary
Modifier and TypeMethodDescriptioncreateDeserializer(GenericType<? extends T> type) Create a deserializer for the specified generic type.createDeserializer(Class<? extends T> type) Create a deserializer for the specified class type.createSerializer(GenericType<? extends T> type) Create a serializer for the specified generic type.createSerializer(Class<? extends T> type) Create a serializer for the specified class type.Return the set of supported types by this factory.
-
Method Details
-
createDeserializer
Create a deserializer for the specified class type.- Parameters:
type- the class type to create a deserializer for- Returns:
- a deserializer for the type
-
createDeserializer
Create a deserializer for the specified generic type.- Parameters:
type- the generic type to create a deserializer for- Returns:
- a deserializer for the type
-
createSerializer
Create a serializer for the specified class type.- Parameters:
type- the class type to create a serializer for- Returns:
- a serializer for the type
-
createSerializer
Create a serializer for the specified generic type.- Parameters:
type- the generic type to create a serializer for- Returns:
- a serializer for the type
-
supportedTypes
Return the set of supported types by this factory.- Returns:
- a set of supported class types
-