com.tomgibara.pronto.state
Class DefaultStateEnginePolicy

java.lang.Object
  extended by com.tomgibara.pronto.state.DefaultStateEnginePolicy
All Implemented Interfaces:
StateEnginePolicy

public class DefaultStateEnginePolicy
extends java.lang.Object
implements StateEnginePolicy

This StateEnginePolicy implementation is used when no policy has been explicitly set on a state engine.

Author:
Tom Gibara

Constructor Summary
DefaultStateEnginePolicy()
           
 
Method Summary
 boolean isListenerExceptionLogged()
          By default, exceptions raised by listeners are not logged.
 boolean isListenerExceptionThrown()
          By default, exceptions raised by listeners are thrown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStateEnginePolicy

public DefaultStateEnginePolicy()
Method Detail

isListenerExceptionLogged

public boolean isListenerExceptionLogged()
By default, exceptions raised by listeners are not logged.

Specified by:
isListenerExceptionLogged in interface StateEnginePolicy
Returns:
false

isListenerExceptionThrown

public boolean isListenerExceptionThrown()
By default, exceptions raised by listeners are thrown.

Specified by:
isListenerExceptionThrown in interface StateEnginePolicy
Returns:
true


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