com.atomikos.finitestates
Interface FSMPreEnterListener<Status>

All Superinterfaces:
EventListener

public interface FSMPreEnterListener<Status>
extends EventListener

A listener that wants to be notified BEFORE the new state is entered.


Method Summary
 void preEnter(FSMEnterEvent<Status> e)
          Called BEFORE the FSM enters the new state, so that the callee is sure that nobody has seen the new state yet.
 

Method Detail

preEnter

void preEnter(FSMEnterEvent<Status> e)
              throws IllegalStateException
Called BEFORE the FSM enters the new state, so that the callee is sure that nobody has seen the new state yet.

Throws:
IllegalStateException - on failure. The callee can use this to prevent the state change from happening.


Copyright © 2014. All Rights Reserved.