java.lang.Object
org.eclipse.yasson.internal.components.AbstractComponentBinding
org.eclipse.yasson.internal.components.AdapterBinding
Wrapper for JsonbAdapter generic information and an components itself.
-
Constructor Summary
ConstructorDescriptionAdapterBinding
(Type fromType, Type toType, jakarta.json.bind.adapter.JsonbAdapter<?, ?> adapter) Adapter info with type to "adapt from", type to "adapt to" and an components itself. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.json.bind.adapter.JsonbAdapter<?,
?> Get actual components to adapt object value.Class<?>
Class of user component.Represents a type to which to adapt into.Methods inherited from class org.eclipse.yasson.internal.components.AbstractComponentBinding
getBindingType
-
Constructor Details
-
Method Details
-
getToType
Represents a type to which to adapt into. During marshalling object property is adapted to this type and result is marshalled. During unmarshalling object is unmarshalled into this type first, than converted to field type and set.- Returns:
- Type from which to adapt
-
getAdapter
public jakarta.json.bind.adapter.JsonbAdapter<?,?> getAdapter()Get actual components to adapt object value.- Returns:
- components
-
getComponentClass
Description copied from class:AbstractComponentBinding
Class of user component.- Specified by:
getComponentClass
in classAbstractComponentBinding
- Returns:
- component class
-