Package net.officefloor.vertx
Class VertxMethodReturnManufacturerServiceFactory<T>
java.lang.Object
net.officefloor.vertx.VertxMethodReturnManufacturerServiceFactory<T>
- All Implemented Interfaces:
ServiceFactory<MethodReturnManufacturer<?,,?>> MethodReturnManufacturer<io.vertx.core.Future<T>,,T> MethodReturnManufacturerServiceFactory
public class VertxMethodReturnManufacturerServiceFactory<T>
extends Object
implements MethodReturnManufacturerServiceFactory, MethodReturnManufacturer<io.vertx.core.Future<T>,T>
- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethodReturnTranslator<io.vertx.core.Future<T>,T> Creates theMethodReturnTranslatorfor the particularMethodreturn.createService(ServiceContext context) Creates the service.
-
Constructor Details
-
VertxMethodReturnManufacturerServiceFactory
public VertxMethodReturnManufacturerServiceFactory()
-
-
Method Details
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<T>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-
createReturnTranslator
public MethodReturnTranslator<io.vertx.core.Future<T>,T> createReturnTranslator(MethodReturnManufacturerContext<T> context) throws Exception Description copied from interface:MethodReturnManufacturerCreates the
MethodReturnTranslatorfor the particularMethodreturn.Should the
MethodReturnManufacturernot handle the return value, it should returnnull. This is because the firstMethodReturnManufacturerproviding aMethodReturnTranslatorwill be used.- Specified by:
createReturnTranslatorin interfaceMethodReturnManufacturer<io.vertx.core.Future<T>,T> - Parameters:
context-MethodReturnManufacturerContext.- Returns:
MethodReturnTranslatorornullif not able to handle return value.- Throws:
Exception- If fails to create theMethodReturnTranslator.
-