public class DefaultObjectMapperFactory extends Object implements ObjectMapperFactory
ObjectMapper factory| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultObjectMapperFactory.Holder
lazy holder pattern to prevent instantiation of serializers if not used.
|
| Constructor and Description |
|---|
DefaultObjectMapperFactory()
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.databind.Module |
addSerializer(com.fasterxml.jackson.databind.module.SimpleModule module)
adds custom serializers to given module
|
protected com.fasterxml.jackson.databind.ObjectMapper |
configure(com.fasterxml.jackson.databind.ObjectMapper mapper)
configures given object mapper instance.
|
protected com.fasterxml.jackson.databind.Module |
newModule() |
com.fasterxml.jackson.databind.ObjectMapper |
newObjectMapper() |
public com.fasterxml.jackson.databind.ObjectMapper newObjectMapper()
newObjectMapper in interface ObjectMapperFactoryprotected com.fasterxml.jackson.databind.Module newModule()
protected com.fasterxml.jackson.databind.Module addSerializer(com.fasterxml.jackson.databind.module.SimpleModule module)
module - the module to extendprotected com.fasterxml.jackson.databind.ObjectMapper configure(com.fasterxml.jackson.databind.ObjectMapper mapper)
mapper - the object to configureCopyright © 2014. All Rights Reserved.