1
2
3
4
5 package com.tomgibara.pronto.state;
6
7 /**
8 * This StateEnginePolicy implementation is used when no policy has been
9 * explicitly set on a state engine.
10 *
11 * @author Tom Gibara
12 *
13 */
14
15 public class DefaultStateEnginePolicy implements StateEnginePolicy {
16
17 /**
18 * By default, exceptions raised by listeners are not logged.
19 *
20 * @return false
21 */
22
23 public boolean isListenerExceptionLogged() {
24 return false;
25 }
26
27 /**
28 * By default, exceptions raised by listeners are thrown.
29 *
30 * @return true
31 */
32
33 public boolean isListenerExceptionThrown() {
34 return true;
35 }
36
37 }