KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > config > schema > listen > NullConfigurationChangeListener


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.listen;
5
6 import org.apache.xmlbeans.XmlObject;
7
8 /**
9  * A {@link ConfigurationChangeListener} that doesn't do anything.
10  */

11 public class NullConfigurationChangeListener implements ConfigurationChangeListener {
12
13   private static final NullConfigurationChangeListener INSTANCE = new NullConfigurationChangeListener();
14   
15   public static NullConfigurationChangeListener getInstance() {
16     return INSTANCE;
17   }
18   
19   private NullConfigurationChangeListener() {
20     // Nothing here.
21
}
22   
23   public void configurationChanged(XmlObject oldConfig, XmlObject newConfig) {
24     // Nothing here.
25
}
26
27 }
28
Popular Tags