Interface MethodReturnManufacturer<R,T>
- Type Parameters:
R-MethodFunctionreturn type.T- Translated type.
- All Known Implementing Classes:
ReactorMethodReturnManufacturerServiceFactory,VertxMethodReturnManufacturerServiceFactory
public interface MethodReturnManufacturer<R,T>
Manufactures the
MethodReturnTranslator.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionCreates theMethodReturnTranslatorfor the particularMethodreturn.
-
Method Details
-
createReturnTranslator
MethodReturnTranslator<R,T> createReturnTranslator(MethodReturnManufacturerContext<T> context) throws Exception Creates the
MethodReturnTranslatorfor the particularMethodreturn.Should the
MethodReturnManufacturernot handle the return value, it should returnnull. This is because the firstMethodReturnManufacturerproviding aMethodReturnTranslatorwill be used.- Parameters:
context-MethodReturnManufacturerContext.- Returns:
MethodReturnTranslatorornullif not able to handle return value.- Throws:
Exception- If fails to create theMethodReturnTranslator.
-