title: getContext() method of CustomContextResolver is not called by Jackson
body: <p>I am struggling with this issue for days now and have no clue how to solve this. Any quick help will be grateful. 
  I need to convert LocalDate from JSON string which I am receiving from REST service build using apache CXF and jackson. I wrote custom ContextResolver and registered JavaTimeModule in Mapper object. 
  When I run the application, default constructor is called, that means it has been loaded, but getContext() method which returns ObjectMapper never gets called.</p>
  
  <p>I have registered same ContextResolver in server and client side. 
  All dependencies are in place(jackson databind, core, annotation, datatype-jsr310).</p>
  
  <p>I am able to fetch JSON response when I hit REST URI directly in browser. Issue comes when I call same URI annotated method from client code
  Below is my client code. </p>
  
  <pre><code>import javax.ws.rs.ext.ContextResolver;
  import javax.ws.rs.ext.Provider;
  
  import com.fasterxml.jackson.databind.ObjectMapper;
  import com.fasterxml.jackson.databind.SerializationFeature;
  import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
  
  
  @Provider //makes this bean a Provider
  public class LocalDateObjectMapperContextResolver implements ContextResolver&lt;ObjectMapper&gt;{
  
      private final ObjectMapper MAPPER;
  
      public LocalDateObjectMapperContextResolver() {
          MAPPER = new ObjectMapper();
          MAPPER.registerModule(new JavaTimeModule());
          MAPPER.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
      }
  
      @Override
      public ObjectMapper getContext(Class&lt;?&gt; type) {
          return MAPPER;
      }
  
  }
  &lt;jaxrs:client id="testclient"
      serviceClass="package1.RESTService"
      username="abc"
      password="abc"
      address="$serviceURL"&gt;
  
      &lt;jaxrs:features&gt;
          &lt;bean class="org.apache.cxf.transport.common.gzip.GZIPFeature"/&gt;
          &lt;cxf:logging/&gt;
      &lt;/jaxrs:features&gt;
  
      &lt;jaxrs:providers&gt;
          &lt;bean class="org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider"/&gt;
          &lt;bean class="mypackage.LocalDateObjectMapperContextResolver"/&gt;
      &lt;/jaxrs:providers&gt;
  
  &lt;/jaxrs:client&gt;
  </code></pre>
  
  <p>Same way, This contextResolver is registered on server side also under </p>
  
  <pre><code>&lt;jaxrs:server&gt;
  .....
   &lt;jaxrs:providers&gt;
      &lt;bean class="org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider"/&gt;
              &lt;bean class="mypackage.LocalDateObjectMapperContextResolver"/&gt;
    &lt;/jaxrs:providers&gt;
  &lt;/jaxrs:server&gt;
  </code></pre>
  
  <p>Any reason why getContext is not called?</p>
  
  <p>I also tried by extending ObjectMapper and registering javaTimeModule there, but dont know how to register customObjectMapper in Jackson flow. I just put default constructor for testing, And it does get called while application startup, but then again, No results, I still get same error.</p>
  
  <p>Error: No suitable constructor found for type [simple type, class java.time.LocalDate]: can not instantiate from JSON object (need to add/enable type information?)</p>