@JsonbAnnotation @Retention(value=RUNTIME) @Target(value={ANNOTATION_TYPE,METHOD,CONSTRUCTOR}) public @interface JsonbCreator
This annotation identifies the custom constructor or factory method to use when creating an instance of the associated class.
Only one constructor or static factory method can be annotated with JsonbCreator
in a given class.
The @JsonbCreator
annotation is intended to be used with constructors/methods with parameters.
Such parameters could be annotated for instance with @JsonbProperty
.
Usage
The @JsonbCreator
annotation can be used with the followingprogram elements:
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.