java.lang.Object
org.eclipse.yasson.internal.ComponentMatcher
Searches for a registered components or Serializer for a given type.
-
Method Summary
Modifier and TypeMethodDescriptiongetDeserializeAdapterBinding
(Type propertyRuntimeType, ComponentBoundCustomization customization) Get components from property model (if declared by annotation and runtime type matches), or return components searched by runtime type.getDeserializerBinding
(Type propertyRuntimeType, ComponentBoundCustomization customization) Lookup deserializer binding for a given property runtime type.getSerializeAdapterBinding
(Type propertyRuntimeType, ComponentBoundCustomization customization) Get components from property model (if declared by annotation and runtime type matches), or return components searched by runtime type.getSerializerBinding
(Type propertyRuntimeType, ComponentBoundCustomization customization) Lookup serializer binding for a given property runtime type.
-
Method Details
-
getSerializerBinding
public Optional<SerializerBinding<?>> getSerializerBinding(Type propertyRuntimeType, ComponentBoundCustomization customization) Lookup serializer binding for a given property runtime type.- Parameters:
propertyRuntimeType
- runtime type of a propertycustomization
- with component info- Returns:
- serializer optional
-
getDeserializerBinding
public Optional<DeserializerBinding<?>> getDeserializerBinding(Type propertyRuntimeType, ComponentBoundCustomization customization) Lookup deserializer binding for a given property runtime type.- Parameters:
propertyRuntimeType
- runtime type of a propertycustomization
- customization with component info- Returns:
- serializer optional
-
getSerializeAdapterBinding
public Optional<AdapterBinding> getSerializeAdapterBinding(Type propertyRuntimeType, ComponentBoundCustomization customization) Get components from property model (if declared by annotation and runtime type matches), or return components searched by runtime type.- Parameters:
propertyRuntimeType
- runtime type not nullcustomization
- customization with component info- Returns:
- components info if present
-
getDeserializeAdapterBinding
public Optional<AdapterBinding> getDeserializeAdapterBinding(Type propertyRuntimeType, ComponentBoundCustomization customization) Get components from property model (if declared by annotation and runtime type matches), or return components searched by runtime type.- Parameters:
propertyRuntimeType
- runtime type not nullcustomization
- customization with component info- Returns:
- components info if present
-