java.lang.Object
org.eclipse.yasson.internal.components.ComponentBindings
Wrapper holding singleton instances of user defined components - Adapters, (De)Serializers.
-
Constructor Summary
ConstructorsConstructorDescriptionComponentBindings(Type bindingType) Construct empty bindings for a given type.ComponentBindings(Type bindingType, SerializerBinding serializer, DeserializerBinding deserializer, AdapterBinding adapter) Creates an instance and populates it with bindings for a given type. -
Method Summary
Modifier and TypeMethodDescriptionAdapter info if any.Type to which components are bound.Deserializer if any.Serializer if any.
-
Constructor Details
-
ComponentBindings
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
Type to which components are bound.- Returns:
- Bound type.
-
getSerializer
Serializer if any.- Returns:
- serializer
-
getDeserializer
Deserializer if any.- Returns:
- deserializer
-
getAdapterInfo
Adapter info if any.- Returns:
- adapterInfo
-