org.squirrelframework.foundation.fsm.StateMachineIntercepter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of squirrel-foundation Show documentation
Show all versions of squirrel-foundation Show documentation
foundation module of squirrel framework which provided event driven infrastructure and a finite state machine implementation.
package org.squirrelframework.foundation.fsm;
public interface StateMachineIntercepter, S, E, C> {
void onStart(T stateMachine);
void onTerminate(T stateMachine);
void beforeOnTransition(T stateMachine, S sourceState, E event, C context);
void onTransitionBegin(T stateMachine, S sourceState, E event, C context);
void onTransitionComplete(T stateMachine, S sourceState, S targetState, E event, C context);
void onTransitionDeclined(T stateMachine, S sourceState, E event, C context);
void onTransitionCausedException(Exception e, T stateMachine, S sourceState, E event, C context);
void afterOnTransition(T stateMachine, S sourceState, E event, C context);
}