Package jakarta.json.bind.annotation
Annotation Type JsonbTypeAdapter
-
@JsonbAnnotation @Retention(RUNTIME) @Target({ANNOTATION_TYPE,TYPE,FIELD,METHOD,PARAMETER}) public @interface JsonbTypeAdapter
Annotation provides way how to set custom JsonbAdapter to field or JavaBean property.
Usage
The
@JsonbTypeAdapter
annotation can be used with the following program elements:- type
- field
- method
- parameter
- Since:
- JSON Binding 1.0
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends JsonbAdapter>
value
Custom JsonbAdapter which provides custom mapping for given field or JavaBean property.
-
-
-
Element Detail
-
value
Class<? extends JsonbAdapter> value
Custom JsonbAdapter which provides custom mapping for given field or JavaBean property.- Returns:
- Adapter to use.
-
-