Interface MethodObjectManufacturerContext
-
public interface MethodObjectManufacturerContextContext for theMethodReturnManufacturer.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <E extends java.lang.Throwable>
voidaddEscalation(java.lang.Class<E> escalationType)Adds aManagedFunctionEscalationTypeBuilderto theManagedFunctionTypeBuilderdefinition.ClassDependenciesgetClassDependencies()Obtains theClassDependenciesto create dependencies.java.lang.StringgetFunctionName()Obtains the name of theManagedFunction.java.lang.reflect.MethodgetMethod()Obtains theMethod.SourceContextgetSourceContext()Obtains theSourceContext.
-
-
-
Method Detail
-
getMethod
java.lang.reflect.Method getMethod()
Obtains theMethod.- Returns:
Method.
-
getFunctionName
java.lang.String getFunctionName()
Obtains the name of theManagedFunction.- Returns:
- Name of the
ManagedFunction.
-
getClassDependencies
ClassDependencies getClassDependencies()
Obtains theClassDependenciesto create dependencies.- Returns:
ClassDependencies.
-
addEscalation
<E extends java.lang.Throwable> void addEscalation(java.lang.Class<E> escalationType)
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.
-
-