Interface MethodObjectManufacturerContext
public interface MethodObjectManufacturerContext
Context for the
MethodReturnManufacturer.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescription<E extends Throwable>
voidaddEscalation(Class<E> escalationType) Adds aManagedFunctionEscalationTypeBuilderto theManagedFunctionTypeBuilderdefinition.Obtains theClassDependenciesto create dependencies.Obtains the name of theManagedFunction.Obtains theMethod.Obtains theSourceContext.
-
Method Details
-
getMethod
Method getMethod()Obtains theMethod.- Returns:
Method.
-
getFunctionName
String getFunctionName()Obtains the name of theManagedFunction.- Returns:
- Name of the
ManagedFunction.
-
getClassDependencies
ClassDependencies getClassDependencies()Obtains theClassDependenciesto create dependencies.- Returns:
ClassDependencies.
-
addEscalation
Adds a
ManagedFunctionEscalationTypeBuilderto theManagedFunctionTypeBuilderdefinition.It is possible the
MethodReturnTranslatorwill throw anEscalation. While this should be avoided, this allows registeringEscalationfor being handled.- Type Parameters:
E-Escalationtype.- Parameters:
escalationType- Type to be handled by anEscalationFlow.
-
getSourceContext
SourceContext getSourceContext()Obtains theSourceContext.- Returns:
SourceContext.
-