Package dev.runabout
Interface MethodResolver
-
public interface MethodResolverRunabout interface for determining the caller method when using theRunaboutService. This interface is used to ensure the correct method is recorded when saving a runabout scenario. The library comes with a default implementation and a builder to meet most use cases. SeeMethodResolverBuilderfor more information.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.reflect.MethodgetMethod()Determines the method further down the stack that called into the RunaboutService and should be used in the resultingRunaboutScenario.default java.lang.StringgetSerializedMethod()Gets the method as a string in the format expected by Runabout.
-
-
-
Method Detail
-
getMethod
java.lang.reflect.Method getMethod()
Determines the method further down the stack that called into the RunaboutService and should be used in the resultingRunaboutScenario.- Returns:
- The method that the scenario will run.
-
getSerializedMethod
default java.lang.String getSerializedMethod()
Gets the method as a string in the format expected by Runabout. Only override this method if you have a custom method format that Runabout can understand.- Returns:
- A string identifying the method.
-
-