Class DefaultJacksonObjectMapperFactory
java.lang.Object
si.mazi.rescu.serialization.jackson.DefaultJacksonObjectMapperFactory
- All Implemented Interfaces:
JacksonConfigureListener,JacksonObjectMapperFactory
public class DefaultJacksonObjectMapperFactory extends Object implements JacksonObjectMapperFactory
Default implementation for JacksonObjectMapperFactory
- Author:
- mrmx
-
Constructor Summary
Constructors Constructor Description DefaultJacksonObjectMapperFactory() -
Method Summary
Modifier and Type Method Description voidconfigureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)Allow configuration afterObjectMappercreation.protected com.fasterxml.jackson.databind.ObjectMappercreateInstance()Allows subclasing and overriding of ObjectMapper instancescom.fasterxml.jackson.databind.ObjectMappercreateObjectMapper()Creates a configured instance ofObjectMapper.
-
Constructor Details
-
DefaultJacksonObjectMapperFactory
public DefaultJacksonObjectMapperFactory()
-
-
Method Details
-
createObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()Creates a configured instance ofObjectMapper.- Specified by:
createObjectMapperin interfaceJacksonObjectMapperFactory- Returns:
- configured instance of
ObjectMapper
-
configureObjectMapper
public void configureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)Description copied from interface:JacksonObjectMapperFactoryAllow configuration afterObjectMappercreation. For example, the users might want to register modules with nonstandard (de)serializers now.- Specified by:
configureObjectMapperin interfaceJacksonConfigureListener- Specified by:
configureObjectMapperin interfaceJacksonObjectMapperFactory- Parameters:
objectMapper- the ObjectMapper to configure.
-
createInstance
protected com.fasterxml.jackson.databind.ObjectMapper createInstance()Allows subclasing and overriding of ObjectMapper instances- Returns:
- instance of
ObjectMapper
-