com.atomikos.finitestates
Interface FSMPreTransitionListener

All Superinterfaces:
EventListener

public interface FSMPreTransitionListener
extends EventListener

A listener interface for FSMTransition events, but one that wishes to be notified BEFORE the transition is exposed to other threads.


Method Summary
 void beforeTransition(FSMTransitionEvent e)
          A method to be called BEFORE the specified transition takes place.
 

Method Detail

beforeTransition

void beforeTransition(FSMTransitionEvent e)
                      throws IllegalStateException
A method to be called BEFORE the specified transition takes place. Since the transition still has to happen, no listener can be sure that the event notification eventually leads to the transition. This is because the state machine process can fail after the notice, or the target state can be prevented somehow.

Parameters:
e - The transition that will be attempted.
Throws:
IllegalStateException - on failure.


Copyright © 2011. All Rights Reserved.