/**
 * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
 * 
 * Please see distribution for license.
 */
package com.opengamma.core.change;

import javax.time.Instant;

import com.opengamma.id.UniqueId;

/**
 * Implementation of {@link ChangeManager} to use when change notifications are not supported or never needed.
 */
public final class DummyChangeManager implements ChangeManager {

  /**
   * Singleton instance
   */
  public static final DummyChangeManager INSTANCE = new DummyChangeManager();
  
  /**
   * Hidden constructor.
   */
  private DummyChangeManager() {
  }
  
  @Override
  public void addChangeListener(ChangeListener listener) {
  }

  @Override
  public void removeChangeListener(ChangeListener listener) {
  }

  @Override
  public void entityChanged(ChangeType type, UniqueId beforeId, UniqueId afterId, Instant versionInstant) {
    throw new UnsupportedOperationException(DummyChangeManager.class.getSimpleName() + " does not support change notifications");
  }

}

@@ -530,19 +530,17 @@
 ager();%0A
-  
 %0A
+
   /**%0A  
@@ -609,11 +609,9 @@
   %7D%0A
-  
 %0A
+
   @O
@@ -669,32 +669,66 @@
 ner listener) %7B%0A
+    // dummy manager does nothing%0A
   %7D%0A%0A  @Override
@@ -786,24 +786,58 @@
 listener) %7B%0A
+    // dummy manager does nothing%0A
   %7D%0A%0A  @Over
@@ -957,133 +957,37 @@
     
-throw new UnsupportedOperationException(DummyChangeManager.class.getSimpleName() + %22 does not support change notifications%22);
+// dummy manager does nothing
 %0A  %7D

Make dummy change manager do nothing