public static class ConfiguredObjectMapper.Builder
extends java.lang.Object
ConfiguredObjectMapper instances.| Modifier and Type | Method and Description |
|---|---|
ConfiguredObjectMapper.Builder |
addRegisteredModules(java.lang.Iterable<? extends com.fasterxml.jackson.databind.Module> modules)
Adds
modules that will be registered in the backing ObjectMapper. |
ConfiguredObjectMapper.Builder |
apiSerializationConfig(ApiSerializationConfig config)
Sets the
ApiSerializationConfig that should be used to construct the backing ObjectMapper. |
ConfiguredObjectMapper |
build()
Builds a
ConfiguredObjectMapper using the configuration specified in this builder. |
public ConfiguredObjectMapper.Builder apiSerializationConfig(@Nullable ApiSerializationConfig config)
ApiSerializationConfig that should be used to construct the backing ObjectMapper. This replaces the previous configuration, null can be used to clear
the previous value.config - an Api serialization configpublic ConfiguredObjectMapper.Builder addRegisteredModules(java.lang.Iterable<? extends com.fasterxml.jackson.databind.Module> modules)
modules that will be registered in the backing ObjectMapper.modules - modules to registerpublic ConfiguredObjectMapper build()
ConfiguredObjectMapper using the configuration specified in this builder.