Interface JsonBindingFactory<T>

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 Details

    • createDeserializer

      JsonDeserializer<T> createDeserializer(Class<? extends T> type)
      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

      JsonDeserializer<T> createDeserializer(GenericType<? extends T> type)
      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

      JsonSerializer<T> createSerializer(Class<? extends T> type)
      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

      JsonSerializer<T> createSerializer(GenericType<? extends T> type)
      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

      Set<Class<?>> supportedTypes()
      Return the set of supported types by this factory.
      Returns:
      a set of supported class types