1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package de.bea.domingo.monitor;
24
25
26 /***
27 * Null monitor, simply does nothing.
28 *
29 * @author <a href=mailto:kriede@users.sourceforge.net>Kurt Riede</a>
30 */
31 public final class NullMonitor extends AbstractDefaultMonitor {
32
33 /*** Singleton instance of this passive null monitor. */
34 private static final NullMonitor INSTANCE = new NullMonitor();
35
36 /***
37 * Constructor.
38 */
39 private NullMonitor() {
40 }
41
42 /***
43 * Returns a singleton instance of the null monitor.
44 *
45 * @return singleton instance of the null monitor
46 */
47 public static NullMonitor getInstance() {
48 return INSTANCE;
49 }
50
51 /***
52 * Monitor a message.
53 *
54 * @param message the message
55 */
56 protected void monitor(final String message) {
57 }
58
59 /***
60 * Monitor a throwable.
61 *
62 * @param throwable the throwable
63 */
64 protected void monitor(final Throwable throwable) {
65 }
66 }