Package net.officefloor.scala
Class ScalaObjectMapperParserDecoratorServiceFactory
- java.lang.Object
-
- net.officefloor.scala.ScalaObjectMapperParserDecoratorServiceFactory
-
- All Implemented Interfaces:
ServiceFactory<ObjectMapperParserDecorator>
,ObjectMapperParserDecorator
,ObjectMapperParserDecoratorServiceFactory
public class ScalaObjectMapperParserDecoratorServiceFactory extends java.lang.Object implements ObjectMapperParserDecoratorServiceFactory, ObjectMapperParserDecorator
- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ScalaObjectMapperParserDecoratorServiceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectMapperParserDecorator
createService(ServiceContext context)
Creates the service.void
decorateObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)
Decorates theObjectMapper
.
-
-
-
Method Detail
-
createService
public ObjectMapperParserDecorator createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactory
Creates the service.- Specified by:
createService
in interfaceServiceFactory<ObjectMapperParserDecorator>
- 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:ObjectMapperParserDecorator
Decorates theObjectMapper
.- Specified by:
decorateObjectMapper
in interfaceObjectMapperParserDecorator
- Parameters:
mapper
-ObjectMapper
.- Throws:
java.lang.Exception
- If fails to decorate theObjectMapper
.
-
-