@ThreadSafe
public final class ObjectMappers
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
currentObjectMapper()
Returns the
ObjectMapper currently used by Synapse. |
static com.fasterxml.jackson.databind.ObjectMapper |
defaultObjectMapper() |
static void |
overrideObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Overrides the object mapper actually used by Synapse.
|
public static com.fasterxml.jackson.databind.ObjectMapper defaultObjectMapper()
public static com.fasterxml.jackson.databind.ObjectMapper currentObjectMapper()
ObjectMapper currently used by Synapse.
By default, this is the same as defaultObjectMapper(). You can override this mapper using
overrideObjectMapper(ObjectMapper).
ObjectMapper currently used by Synapse.public static void overrideObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Handle with care as there is a chance to break message passing across Synapse services if configured in an unexpected way.
objectMapper - the ObjectMapper used to serialize and deserialize messages