@Component(value="tapirStepExecutionInvocationHandlerNotifier") public class StepExecutionInvocationHandlerNotifier extends Object
StepExecutionInvocationHandlerNotifier
notifies all registered step execution invocation handlers
before and after a step is executed.Constructor and Description |
---|
StepExecutionInvocationHandlerNotifier() |
Modifier and Type | Method and Description |
---|---|
StepExecutionInvocationHandler.Result |
notifyHandlers(Function<StepExecutionInvocationHandler,StepExecutionInvocationHandler.Result> stepExecutionInvocationHandlerFunction)
Notifies each registered
StepExecutionInvocationHandler of the given eventIf a notified StepExecutionInvocationHandler returns StepExecutionInvocationHandler.Result.SKIP or throws an exception the
result/exception is stored and all the upcoming handlers are notified anyway. |
public StepExecutionInvocationHandlerNotifier()
public StepExecutionInvocationHandler.Result notifyHandlers(Function<StepExecutionInvocationHandler,StepExecutionInvocationHandler.Result> stepExecutionInvocationHandlerFunction)
StepExecutionInvocationHandler
of the given eventStepExecutionInvocationHandler
returns StepExecutionInvocationHandler.Result.SKIP
or throws an exception the
result/exception is stored and all the upcoming handlers are notified anyway. After notifying all handlers, the first
occurred exception is rethrown or StepExecutionInvocationHandler.Result.SKIP
is returned, if any handler has returned StepExecutionInvocationHandler.Result.SKIP
.stepExecutionInvocationHandlerFunction
- The code which should be executed on notificationExecutionPlanExecutor
how to proceedCopyright © 2018 b+m Informatik AG. All rights reserved.