Class ComponentBindings
- java.lang.Object
-
- org.eclipse.yasson.internal.components.ComponentBindings
-
public class ComponentBindings extends java.lang.Object
Wrapper holding singleton instances of user defined components - Adapters, (De)Serializers.
-
-
Constructor Summary
Constructors Constructor Description ComponentBindings(java.lang.reflect.Type bindingType)
Construct empty bindings for a given type.ComponentBindings(java.lang.reflect.Type bindingType, SerializerBinding serializer, DeserializerBinding deserializer, AdapterBinding adapter)
Creates an instance and populates it with bindings for a given type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdapterBinding
getAdapterInfo()
Adapter info if any.java.lang.reflect.Type
getBindingType()
Type to which components are bound.DeserializerBinding
getDeserializer()
Deserializer if any.SerializerBinding
getSerializer()
Serializer if any.
-
-
-
Constructor Detail
-
ComponentBindings
public ComponentBindings(java.lang.reflect.Type bindingType)
Construct empty bindings for a given type.- Parameters:
bindingType
- type components are bound to
-
ComponentBindings
public ComponentBindings(java.lang.reflect.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 Detail
-
getBindingType
public java.lang.reflect.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
-
-