Annotation Type JsonCreator
-
@Target({METHOD,CONSTRUCTOR,ANNOTATION_TYPE}) @Retention(RUNTIME) @Inherited @Documented public @interface JsonCreator
Static methods annotated with @JsonCreator annotation will act as method factories. These methods can take arguments that match properties from the json stream. If you use default configuration you must annotate each argument withJsonPropertyand define a name. By default if a object contains constructors and methods annotated with @JsonCreator the factory methods will be privileged.- Author:
- Eugen Cepoi
- See Also:
JsonProperty,StandardMutaAccessorResolver