コード例 #1
0
 @Override
 public Object findContentDeserializer(Annotated a) {
   JsonDeserialize ann = _findAnnotation(a, JsonDeserialize.class);
   if (ann != null) {
     Class<? extends JsonDeserializer<?>> deserClass = ann.contentUsing();
     if (deserClass != JsonDeserializer.None.class) {
       return deserClass;
     }
   }
   return null;
 }
コード例 #2
0
 @Override
 public Object findKeyDeserializer(Annotated a) {
   JsonDeserialize ann = _findAnnotation(a, JsonDeserialize.class);
   if (ann != null) {
     Class<? extends KeyDeserializer> deserClass = ann.keyUsing();
     if (deserClass != KeyDeserializer.None.class) {
       return deserClass;
     }
   }
   return null;
 }
コード例 #3
0
 @Override
 public Class<?> findPOJOBuilder(AnnotatedClass ac) {
   JsonDeserialize ann = _findAnnotation(ac, JsonDeserialize.class);
   return (ann == null) ? null : _classIfExplicit(ann.builder());
 }
コード例 #4
0
 @Override
 public Class<?> findDeserializationContentType(Annotated am, JavaType baseContentType) {
   JsonDeserialize ann = _findAnnotation(am, JsonDeserialize.class);
   return (ann == null) ? null : _classIfExplicit(ann.contentAs());
 }
コード例 #5
-1
 @Override
 public Object findDeserializationContentConverter(AnnotatedMember a) {
   JsonDeserialize ann = _findAnnotation(a, JsonDeserialize.class);
   return (ann == null) ? null : _classIfExplicit(ann.contentConverter(), Converter.None.class);
 }