Interface JsonComponent<T>

Type Parameters:
T - type supported by this component
All Known Subinterfaces:
JsonConverter<T>, JsonDeserializer<T>, JsonSerializer<T>

public interface JsonComponent<T>
A common abstraction used by both serializers and deserializers.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    configure(JsonBindingConfigurator jsonBindingConfigurator)
    Configures this component with the provided configurator.
    Return the type this component handles.
  • Method Details

    • type

      GenericType<T> type()
      Return the type this component handles.
      Returns:
      the GenericType representing the type T
    • configure

      default void configure(JsonBindingConfigurator jsonBindingConfigurator)
      Configures this component with the provided configurator.

      This method allows the component to perform any necessary setup during the JSON binding configuration process. The default implementation does nothing.

      Parameters:
      jsonBindingConfigurator - the configurator to use for setup