Class ComponentBindings

java.lang.Object
org.eclipse.yasson.internal.components.ComponentBindings

public class ComponentBindings extends Object
Wrapper holding singleton instances of user defined components - Adapters, (De)Serializers.
  • Field Details

  • Constructor Details

    • ComponentBindings

      public ComponentBindings(Type bindingType)
      Construct empty bindings for a given type.
      Parameters:
      bindingType - type components are bound to
    • ComponentBindings

      public ComponentBindings(Type bindingType, SerializerBinding serializer, DeserializerBinding deserializer, AdapterBinding adapter)
      Creates an instance and populates it with bindings for a given type.
      Parameters:
      bindingType - Type components are bound to.
      serializer - Serializer.
      deserializer - Deserializer.
      adapter - Adapter.
  • Method Details

    • getBindingType

      public Type getBindingType()
      Type to which components are bound.
      Returns:
      Bound type.
    • getSerializer

      public SerializerBinding getSerializer()
      Serializer if any.
      Returns:
      serializer
    • getDeserializer

      public DeserializerBinding getDeserializer()
      Deserializer if any.
      Returns:
      deserializer
    • getAdapterInfo

      public AdapterBinding getAdapterInfo()
      Adapter info if any.
      Returns:
      adapterInfo