Example usage for org.springframework.statemachine.action CompositeActionListener CompositeActionListener

List of usage examples for org.springframework.statemachine.action CompositeActionListener CompositeActionListener

Introduction

In this page you can find the example usage for org.springframework.statemachine.action CompositeActionListener CompositeActionListener.

Prototype

CompositeActionListener

Source Link

Usage

From source file:org.springframework.statemachine.state.AbstractState.java

@Override
public void addActionListener(ActionListener<S, E> listener) {
    synchronized (this) {
        if (this.actionListener == null) {
            this.actionListener = new CompositeActionListener<>();
        }/*  w w  w.j  a va  2s.  c  om*/
        this.actionListener.register(listener);
    }
}