Example usage for org.springframework.statemachine.listener StateMachineListener stateMachineStopped

List of usage examples for org.springframework.statemachine.listener StateMachineListener stateMachineStopped

Introduction

In this page you can find the example usage for org.springframework.statemachine.listener StateMachineListener stateMachineStopped.

Prototype

void stateMachineStopped(StateMachine<S, E> stateMachine);

Source Link

Document

Notified when statemachine stops

Usage

From source file:org.springframework.statemachine.listener.CompositeStateMachineListener.java

@Override
public void stateMachineStopped(StateMachine<S, E> stateMachine) {
    for (Iterator<StateMachineListener<S, E>> iterator = getListeners().reverse(); iterator.hasNext();) {
        StateMachineListener<S, E> listener = iterator.next();
        try {//from   w ww  . j  ava 2 s .  co m
            listener.stateMachineStopped(stateMachine);
        } catch (Throwable e) {
            log.warn("Error during stateMachineStopped", e);
        }
    }
}