KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > config > schema > dynamic > NullConfigItemListener


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.config.schema.dynamic;
5
6 /**
7  * A {@link ConfigItemListener} that does precisely nothing.
8  */

9 public class NullConfigItemListener implements ConfigItemListener {
10
11   private static final NullConfigItemListener INSTANCE = new NullConfigItemListener();
12   
13   public static NullConfigItemListener getInstance() {
14     return INSTANCE;
15   }
16   
17   private NullConfigItemListener() {
18     // Nothing here.
19
}
20   
21   public void valueChanged(Object JavaDoc oldValue, Object JavaDoc newValue) {
22     // Nothing here.
23
}
24
25 }
26
Popular Tags