Package net.officefloor.kotlin
Class KotlinDataObjectMapperParserDecoratorServiceFactory
java.lang.Object
net.officefloor.kotlin.KotlinDataObjectMapperParserDecoratorServiceFactory
- All Implemented Interfaces:
ServiceFactory<ObjectMapperParserDecorator>,ObjectMapperParserDecorator,ObjectMapperParserDecoratorServiceFactory
public class KotlinDataObjectMapperParserDecoratorServiceFactory
extends Object
implements ObjectMapperParserDecoratorServiceFactory, ObjectMapperParserDecorator
Kotlin Data
ObjectMapperParserDecoratorServiceFactory.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateService(ServiceContext context) Creates the service.voiddecorateObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Decorates theObjectMapper.
-
Constructor Details
-
KotlinDataObjectMapperParserDecoratorServiceFactory
public KotlinDataObjectMapperParserDecoratorServiceFactory()
-
-
Method Details
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<ObjectMapperParserDecorator>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-
decorateObjectMapper
public void decorateObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) throws Exception Description copied from interface:ObjectMapperParserDecoratorDecorates theObjectMapper.- Specified by:
decorateObjectMapperin interfaceObjectMapperParserDecorator- Parameters:
mapper-ObjectMapper.- Throws:
Exception- If fails to decorate theObjectMapper.
-