View Javadoc
1   package cn.home1.oss.lib.common;
2   
3   import com.fasterxml.jackson.databind.introspect.Annotated;
4   import com.fasterxml.jackson.databind.type.TypeFactory;
5   import com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector;
6   
7   /**
8    * Ignore @XmlJavaTypeAdapter.
9    * see: https://github.com/FasterXML/jackson-dataformat-xml/issues/37
10   */
11  public class Jackson2HackedJaxbAnnotationIntrospector extends JaxbAnnotationIntrospector {
12  
13    public Jackson2HackedJaxbAnnotationIntrospector() {
14      super(TypeFactory.defaultInstance());
15    }
16  
17    @Override
18    public Object findSerializationConverter(final Annotated annotated) {
19      return null;
20    }
21  
22    @Override
23    public Object findDeserializationConverter(final Annotated annotated) {
24      return null;
25    }
26  }