Package net.officefloor.reactor
Class ReactorMethodReturnManufacturerServiceFactory<R extends org.reactivestreams.Publisher<? super T>,T>
java.lang.Object
net.officefloor.reactor.ReactorMethodReturnManufacturerServiceFactory<R,T>
- All Implemented Interfaces:
ServiceFactory<MethodReturnManufacturer<?,,?>> MethodReturnManufacturer<R,,T> MethodReturnManufacturerServiceFactory
public class ReactorMethodReturnManufacturerServiceFactory<R extends org.reactivestreams.Publisher<? super T>,T>
extends Object
implements MethodReturnManufacturerServiceFactory, MethodReturnManufacturer<R,T>
- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates theMethodReturnTranslatorfor the particularMethodreturn.createService(ServiceContext context) Creates the service.
-
Constructor Details
-
ReactorMethodReturnManufacturerServiceFactory
public ReactorMethodReturnManufacturerServiceFactory()
-
-
Method Details
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<R extends org.reactivestreams.Publisher<? super T>>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-
createReturnTranslator
public MethodReturnTranslator<R,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<R extends org.reactivestreams.Publisher<? super T>,T> - Parameters:
context-MethodReturnManufacturerContext.- Returns:
MethodReturnTranslatorornullif not able to handle return value.- Throws:
Exception- If fails to create theMethodReturnTranslator.
-