@Target(value={ANNOTATION_TYPE,METHOD,CONSTRUCTOR}) @Retention(value=RUNTIME) public @interface JsonCreator
NOTE: when annotating creator methods (constructors, factory methods), method must either be:
JsonProperty
annotation for the argument: if so, this is so-called "delegate creator",
in which case Jackson first binds JSON into type of the argument, and
then calls creator
JsonProperty
or JacksonInject
, to indicate name
of property to bind to
JsonProperty
annotations MUST use actual name
(NOT empty String for "default"): this because Java bytecode does not
retain names of method or constructor arguments.Copyright © 2012-2013 FasterXML. All Rights Reserved.