Package net.officefloor.scala
Class ScalaObjectMapperResponderDecoratorServiceFactory
- java.lang.Object
-
- net.officefloor.scala.ScalaObjectMapperResponderDecoratorServiceFactory
-
- All Implemented Interfaces:
ServiceFactory<ObjectMapperResponderDecorator>,ObjectMapperResponderDecorator,ObjectMapperResponderDecoratorServiceFactory
public class ScalaObjectMapperResponderDecoratorServiceFactory extends java.lang.Object implements ObjectMapperResponderDecoratorServiceFactory, ObjectMapperResponderDecorator
- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ScalaObjectMapperResponderDecoratorServiceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectMapperResponderDecoratorcreateService(ServiceContext context)Creates the service.voiddecorateObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)Decorates theObjectMapper.
-
-
-
Method Detail
-
createService
public ObjectMapperResponderDecorator createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<ObjectMapperResponderDecorator>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
java.lang.Throwable- If fails to create the service.
-
decorateObjectMapper
public void decorateObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) throws java.lang.ExceptionDescription copied from interface:ObjectMapperResponderDecoratorDecorates theObjectMapper.- Specified by:
decorateObjectMapperin interfaceObjectMapperResponderDecorator- Parameters:
mapper-ObjectMapper.- Throws:
java.lang.Exception- If fails to decorate theObjectMapper.
-
-