Package net.officefloor.scala
Class ScalaObjectMapperParserDecoratorServiceFactory
java.lang.Object
net.officefloor.scala.ScalaObjectMapperParserDecoratorServiceFactory
- All Implemented Interfaces:
ServiceFactory<ObjectMapperParserDecorator>,ObjectMapperParserDecorator,ObjectMapperParserDecoratorServiceFactory
public class ScalaObjectMapperParserDecoratorServiceFactory
extends Object
implements ObjectMapperParserDecoratorServiceFactory, ObjectMapperParserDecorator
- 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
-
ScalaObjectMapperParserDecoratorServiceFactory
public ScalaObjectMapperParserDecoratorServiceFactory()
-
-
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(tools.jackson.databind.cfg.MapperBuilder<?, ?> builder) throws ExceptionDescription copied from interface:ObjectMapperParserDecoratorDecorates theObjectMapperbuilder.- Specified by:
decorateObjectMapperin interfaceObjectMapperParserDecorator- Parameters:
builder-MapperBuilder.- Throws:
Exception- If fails to decorate.
-