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.
@FunctionalInterface public interface FinallyActionRegistry
Registry to declare at execution-time aFinallyAction.- See Also:
FinallyAction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidregisterFinallyAction(FinallyAction finallyAction)This methods is used to register aFinallyActionduring the execution, as aTaskmay have to free resources after execution.
-
-
-
Method Detail
-
registerFinallyAction
void registerFinallyAction(FinallyAction finallyAction)
This methods is used to register aFinallyActionduring the execution, as aTaskmay have to free resources after execution.Such registration is effective only if the execution reaches the
Taskthat defines it.- Parameters:
finallyAction- to be executed after all steps defined in a Scenario
-
-