title: How to configure jackson to use JaxbAnnotationIntrospector or JacksonAnnotationIntrospector depending on the field being serialized
body: <p>I have a wrapper class <code>WrapperClass</code>that encapsulates two objects: <code>ObjectOne</code> and <code>ObjectTwo</code>:</p>
  
  <pre><code>public class WrapperClass {
    ObjectOne objectOne;
    ObjectTwo objectTwo;
  }
  </code></pre>
  
  <p>While serializing a <code>WrapperClass</code>instance, I want to use the <code>JaxbAnnotationIntrospector</code> on <code>objectTwo</code> but not on <code>objectOne</code>. Is that possible?</p>
  
  <p>I have looked into creating a custom annotation introspector that extends <code>JacksonAnnotationIntrospector</code> and overrides its <code>findSerializer()</code> method to pick JAXB's <code>findSerializer()</code> if the class type is <code>ObjectTwo.class</code>. Would that work?</p>
  
  <p>Thank you.</p>