@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:
Comments to: jsonb-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All Rights Reserved.
Use is subject to license terms.