Interface FinallyActionRegistry
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Registry to declare at execution-time a
FinallyAction.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidregisterFinallyAction(FinallyAction finallyAction) This method is used to register aFinallyActionduring the execution, as aActionmay have to free resources after execution.
-
Method Details
-
registerFinallyAction
This method is used to register aFinallyActionduring the execution, as aActionmay have to free resources after execution.Such registration is effective only if the execution reaches the
Actionthat defines it.- Parameters:
finallyAction- to be executed after all steps defined in a Scenario
-