Package net.solarnetwork.codec
Class ObjectMapperModuleContributor
java.lang.Object
net.solarnetwork.service.support.SimpleObjectMapperService
net.solarnetwork.codec.ObjectMapperModuleSupport
net.solarnetwork.codec.ObjectMapperModuleContributor
- All Implemented Interfaces:
ObjectMapperService
Class for adding a
Module to an existing ObjectMapper.
This is useful for adding serializers/deserializers to a pre-existing mapper.- Version:
- 1.1
- Author:
- matt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSet theObjectMappervia aObjectMapperService.voidSetup theModuleand register it with the configuredObjectMapper.Methods inherited from class net.solarnetwork.codec.ObjectMapperModuleSupport
getDeserializers, getKeyDeserializers, getKeySerializers, getModuleName, getModules, getModuleVersion, getSerializers, registerDeserializer, registerKeySerializer, setDeserializers, setKeyDeserializers, setKeySerializers, setModuleName, setModules, setModuleVersion, setSerializers, setVersionMethods inherited from class net.solarnetwork.service.support.SimpleObjectMapperService
getObjectMapper, setJsonFactory, setObjectMapper
-
Constructor Details
-
ObjectMapperModuleContributor
public ObjectMapperModuleContributor()
-
-
Method Details
-
setupModule
public void setupModule()Setup theModuleand register it with the configuredObjectMapper. -
setObjectMapperService
Set theObjectMappervia aObjectMapperService.- Parameters:
service- The service to callSimpleObjectMapperService.getObjectMapper()on.
-