public StateConfiguration<S, T> onExit(final Action exitAction) {
        assert exitAction != null : EXIT_ACTION_IS_NULL;
        return onExit(new Action1<Transition<S, T>>() {
            @Override
            public void doIt(Transition<S, T> arg1) {
                exitAction.doIt();
            }
        });
    }
public StateConfiguration<S, T> onExit(final Action exitAction) {
        assert exitAction != null : EXIT_ACTION_IS_NULL;
        return onExit(new Action1<Transition<S, T>>() {
            @Override
            public void doIt(Transition<S, T> arg1) {
                exitAction.doIt();
            }
        });
    }
public StateConfiguration < S , T > onExit ( final Action exitAction ) { assert exitAction != null : EXIT_ACTION_IS_NULL ; return onExit ( new Action1 < Transition < S , T > > ( ) { @ Override public void doIt ( Transition < S , T > arg1 ) { exitAction . doIt ( ) ; } } ) ; }
Specify an action that will execute when transitioning from the configured state

@param exitAction Action to execute
@return The receiver
Specify an action that will execute when transitioning from the configured state