- 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 TypeMethodDescriptiondefault voidconfigure(JsonBindingConfigurator jsonBindingConfigurator) Configures this component with the provided configurator.type()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
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
-