Interface MethodReturnManufacturer<R,T>
-
- Type Parameters:
R
-MethodFunction
return type.T
- Translated type.
- All Known Implementing Classes:
ReactorMethodReturnManufacturerServiceFactory
public interface MethodReturnManufacturer<R,T>
Manufactures theMethodReturnTranslator
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodReturnTranslator<R,T>
createReturnTranslator(MethodReturnManufacturerContext<T> context)
Creates theMethodReturnTranslator
for the particularMethod
return.
-
-
-
Method Detail
-
createReturnTranslator
MethodReturnTranslator<R,T> createReturnTranslator(MethodReturnManufacturerContext<T> context) throws java.lang.Exception
Creates the
MethodReturnTranslator
for the particularMethod
return.Should the
MethodReturnManufacturer
not handle the return value, it should returnnull
. This is because the firstMethodReturnManufacturer
providing aMethodReturnTranslator
will be used.- Parameters:
context
-MethodReturnManufacturerContext
.- Returns:
MethodReturnTranslator
ornull
if not able to handle return value.- Throws:
java.lang.Exception
- If fails to create theMethodReturnTranslator
.
-
-