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 ObjectMapperResponderDecorator
createService(ServiceContext context)
Creates the service.void
decorateObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
Decorates theObjectMapper
.
-
-
-
Method Detail
-
createService
public ObjectMapperResponderDecorator createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in 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.Exception
Description copied from interface:ObjectMapperResponderDecorator
Decorates theObjectMapper
.- Specified by:
decorateObjectMapper
in interfaceObjectMapperResponderDecorator
- Parameters:
mapper
-ObjectMapper
.- Throws:
java.lang.Exception
- If fails to decorate theObjectMapper
.
-
-