Java 类com.fasterxml.jackson.annotation.JsonFilter 实例源码

项目:QuizUpWinner    文件:JacksonAnnotationIntrospector.java   
public Object findFilterId(AnnotatedClass paramAnnotatedClass)
{
  JsonFilter localJsonFilter = (JsonFilter)paramAnnotatedClass.getAnnotation(JsonFilter.class);
  if (localJsonFilter != null)
  {
    String str = localJsonFilter.value();
    if (str.length() > 0)
      return str;
  }
  return null;
}
项目:camunda-bpm-elasticsearch    文件:JacksonMixInFilterModule.java   
public static String getJsonFilterAnnotationValue(Class clazz) {
  JsonFilter jsonFilterAnnotation = (JsonFilter) clazz.getAnnotation(JsonFilter.class);
  if (jsonFilterAnnotation != null) {
    return jsonFilterAnnotation.value();
  }

  return null;
}