com.holonplatform.json.jackson.jaxrs.internal

## Class JacksonContextResolver

- java.lang.Object
- - com.holonplatform.json.jackson.jaxrs.internal.JacksonContextResolver

- All Implemented Interfaces:
    javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>

      @Produces(value="application/json")
      public class JacksonContextResolver
      extends Object
      implements javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>

  JAX-RS `ContextResolver` to replace default Jackson `ObjectMapper` for JSON marshalling with an ObjectMapper with `PropertyBox` handling capabilities.
  Since:
    5.0.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JacksonContextResolver(boolean prettyPrint)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.fasterxml.jackson.databind.ObjectMapper` | `getContext(Class<?> type)`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JacksonContextResolver

          public JacksonContextResolver(boolean prettyPrint)

      Constructor.
      Parameters:
        `prettyPrint` - `true` to enable pretty printing of serialized JSON

  - ### Method Detail

    - #### getContext

          public com.fasterxml.jackson.databind.ObjectMapper getContext(Class<?> type)

      Specified by:
        `getContext` in interface `javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>`

Copyright © 2019 The Holon Platform. All rights reserved.