Annotation 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 following program elements:

  • method
  • constructor
Since:
JSON Binding 1.0