com.atomikos.finitestates
Interface FSMPreEnterListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
CoordinatorImp, StateRecoveryManagerImp, VolatileStateRecoveryManager

public interface FSMPreEnterListener
extends EventListener

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


Method Summary
 void preEnter(FSMEnterEvent 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 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 © 2011. All Rights Reserved.