public final class InventoryJacksonConfig extends Object
By default, the paths are serialized and deserialized with the tenant ID retained. There is an option to not
include them in the serialized form by using the TenantlessPathSerializer and
DetypedPathDeserializer (by reconfiguring the object mapper to use TenantlessCanonicalPathMixin
and TenantlessRelativePathMixin to serialize the CanonicalPath
or RelativePath respectively. But beware of the need to pre-configure the deserializer with contextual
information that it will use to inject the tenant id into the deserialized path instances.
| Modifier and Type | Method and Description |
|---|---|
static void |
configure(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Configures the provided object mapper with mixins that define the serialization and deserialization behavior
for inventory entities.
|
Copyright © 2014–2017 Red Hat, Inc.. All rights reserved.