Interface MethodObjectManufacturerContext
-
public interface MethodObjectManufacturerContext
Context 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 aManagedFunctionEscalationTypeBuilder
to theManagedFunctionTypeBuilder
definition.ClassDependencies
getClassDependencies()
Obtains theClassDependencies
to create dependencies.java.lang.String
getFunctionName()
Obtains the name of theManagedFunction
.java.lang.reflect.Method
getMethod()
Obtains theMethod
.SourceContext
getSourceContext()
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 theClassDependencies
to create dependencies.- Returns:
ClassDependencies
.
-
addEscalation
<E extends java.lang.Throwable> void addEscalation(java.lang.Class<E> escalationType)
Adds a
ManagedFunctionEscalationTypeBuilder
to theManagedFunctionTypeBuilder
definition.It is possible the
MethodReturnTranslator
will throw anEscalation
. While this should be avoided, this allows registeringEscalation
for being handled.- Type Parameters:
E
-Escalation
type.- Parameters:
escalationType
- Type to be handled by anEscalationFlow
.
-
getSourceContext
SourceContext getSourceContext()
Obtains theSourceContext
.- Returns:
SourceContext
.
-
-