コード例 #1
0
 @Override
 public boolean hasCreatorAnnotation(Annotated a) {
   /* No dedicated disabling; regular @JsonIgnore used
    * if needs to be ignored (and if so, is handled prior
    * to this method getting called)
    */
   JsonCreator ann = _findAnnotation(a, JsonCreator.class);
   return (ann != null && ann.mode() != JsonCreator.Mode.DISABLED);
 }
コード例 #2
0
 @Override
 public JsonCreator.Mode findCreatorBinding(Annotated a) {
   JsonCreator ann = _findAnnotation(a, JsonCreator.class);
   return (ann == null) ? null : ann.mode();
 }