@JsonbAnnotation @Retention(RUNTIME) @Target({ANNOTATION_TYPE,TYPE,FIELD,METHOD}) public @interface JsonbTypeSerializer
Annotation provides way how to set custom JsonbSerializer to field or JavaBean property.
Usage
The @JsonbSerializer
annotation can be used with the following program elements:
Modifier and Type | Required Element | Description |
---|---|---|
Class<? extends JsonbSerializer> |
value |
Custom
JsonbSerializer which provides custom mapping for given field or JavaBean property. |
Class<? extends JsonbSerializer> value
JsonbSerializer
which provides custom mapping for given field or JavaBean property.Copyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.