com.tomgibara.pronto.state
Interface StateEnginePolicy

All Known Implementing Classes:
DefaultStateEnginePolicy

public interface StateEnginePolicy

Implementations of this interface may be used to control some aspects of state engine operation.

Author:
Tom Gibara

Method Summary
 boolean isListenerExceptionLogged()
          Specifies whether exceptions raised by listeners, in response to state events, are logged by the implementation.
 boolean isListenerExceptionThrown()
          Specifies whether exceptions raised by listeners, in response to state events, are thrown on a call to setState or transition.
 

Method Detail

isListenerExceptionLogged

boolean isListenerExceptionLogged()
Specifies whether exceptions raised by listeners, in response to state events, are logged by the implementation.

Returns:
whether exceptions thrown by listeners should be logged

isListenerExceptionThrown

boolean isListenerExceptionThrown()
Specifies whether exceptions raised by listeners, in response to state events, are thrown on a call to setState or transition. The throwing of such exceptions may prevent some listeners from receiving event notification but is guaranteed not interfere with the success of the transition.

Returns:
whether exceptions thrown by listeners remain uncaught by the engine


Copyright © 2006-2007 Tom Gibara. All Rights Reserved.