public void init ( StateMachineExecutor executor ) { this . executor = Assert . notNull ( executor , "executor" ) ; this . context = executor . context ( ) ; this . clock = context . clock ( ) ; this . sessions = context . sessions ( ) ; if ( this instanceof SessionListener ) { executor . context ( ) . sessions ( ) . addListener ( ( SessionListener ) this ) ; } configure ( executor ) ; }
Initializes the state machine .