1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.mina.common;
20
21 /***
22 * Base implementation of {@link SessionManager}s.
23 *
24 * @author Trustin Lee (trustin@apache.org)
25 * @version $Rev: 210062 $, $Date: 2005-07-11 12:52:38 +0900 $
26 */
27 public class BaseSessionManager implements SessionManager {
28
29 /***
30 * Current exception monitor.
31 */
32 protected ExceptionMonitor exceptionMonitor = new DefaultExceptionMonitor();
33
34 protected BaseSessionManager()
35 {
36 }
37
38 public ExceptionMonitor getExceptionMonitor()
39 {
40 return exceptionMonitor;
41 }
42
43 public void setExceptionMonitor( ExceptionMonitor monitor )
44 {
45 if( monitor == null )
46 {
47 monitor = new DefaultExceptionMonitor();
48 }
49
50 this.exceptionMonitor = monitor;
51 }
52 }