Package net.officefloor.scala
Class ScalaObjectMapperResponderDecoratorServiceFactory
java.lang.Object
net.officefloor.scala.ScalaObjectMapperResponderDecoratorServiceFactory
- All Implemented Interfaces:
ServiceFactory<ObjectMapperResponderDecorator>,ObjectMapperResponderDecorator,ObjectMapperResponderDecoratorServiceFactory
public class ScalaObjectMapperResponderDecoratorServiceFactory
extends Object
implements ObjectMapperResponderDecoratorServiceFactory, ObjectMapperResponderDecorator
- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateService(ServiceContext context) Creates the service.voiddecorateObjectMapper(tools.jackson.databind.cfg.MapperBuilder<?, ?> builder) Decorates theObjectMapperbuilder.
-
Constructor Details
-
ScalaObjectMapperResponderDecoratorServiceFactory
public ScalaObjectMapperResponderDecoratorServiceFactory()
-
-
Method Details
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<ObjectMapperResponderDecorator>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-
decorateObjectMapper
public void decorateObjectMapper(tools.jackson.databind.cfg.MapperBuilder<?, ?> builder) throws ExceptionDescription copied from interface:ObjectMapperResponderDecoratorDecorates theObjectMapperbuilder.- Specified by:
decorateObjectMapperin interfaceObjectMapperResponderDecorator- Parameters:
builder-MapperBuilder.- Throws:
Exception- If fails to decorate.
-