Class ComponentMatcher


  • public class ComponentMatcher
    extends Object
    Searches for a registered components or Serializer for a given type.
    Author:
    Roman Grigoriadi
    • Method Detail

      • getSerializerBinding

        public Optional<SerializerBinding<?>> getSerializerBinding​(Type propertyRuntimeType,
                                                                   ComponentBoundCustomization customization)
        Lookup serializer binding for a given property runtime type.
        Parameters:
        propertyRuntimeType - runtime type of a property
        customization - 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 property
        customization - customization with component info
        Returns:
        serializer optional
      • getAdapterBinding

        public Optional<AdapterBinding> getAdapterBinding​(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 null
        customization - customization with component info
        Returns:
        components info if present