BUG-865: Remove SchemaServiceListener 30/9530/3
authorRobert Varga <rovarga@cisco.com>
Thu, 31 Jul 2014 13:08:17 +0000 (15:08 +0200)
committerRobert Varga <rovarga@cisco.com>
Mon, 4 Aug 2014 06:53:45 +0000 (06:53 +0000)
Eradicates the long-deprecated SchemaServiceListener.
SchemaContextListener is the new name for the equivalent service.

Requires controller to merge I15d495d805eb7a08c3bcd3ab0cf8b5a8d2797db5.

Change-Id: I38185b131e9745c0cad366c38428e8be9a8fb4fe
Signed-off-by: Robert Varga <rovarga@cisco.com>
code-generator/binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/impl/RuntimeGeneratedMappingServiceImpl.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaContextListener.java
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaServiceListener.java [deleted file]

index 731b8e5a0aad1b3677f79eded435fc724b59ae68..b711c3985fd5afa081e8a857ebbefc43a46d6c07 100644 (file)
@@ -119,7 +119,7 @@ SchemaLock, AutoCloseable, SchemaContextHolder, TypeResolver {
         binding.setListener(registry);
 
         // if (ctx !== null) {
-        // listenerRegistration = ctx.registerService(SchemaServiceListener,
+        // listenerRegistration = ctx.registerService(SchemaContextListener,
         // this, new Hashtable<String, String>());
         // }
     }
index 2ff674016794442a5cad3d7e1ab03d7cc20bc954..89bbffa058f27338f4bea6a07c79abedfb161032 100644 (file)
@@ -7,7 +7,18 @@
  */
 package org.opendaylight.yangtools.yang.model.api;
 
-public interface SchemaContextListener extends SchemaServiceListener {
-    @Override
+import java.util.EventListener;
+
+/**
+ * Interface for listeners interested in updates of the global schema context.
+ * The global schema context reflects the global view of the model world, and
+ * all entities interacting at the global scale need to maintain a consistent
+ * view of that world.
+ */
+public interface SchemaContextListener extends EventListener {
+    /**
+     * The global schema context is being updated.
+     * @param context New global schema context
+     */
     void onGlobalContextUpdated(SchemaContext context);
 }
diff --git a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaServiceListener.java b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaServiceListener.java
deleted file mode 100644 (file)
index 6ad2315..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.yang.model.api;
-
-import java.util.EventListener;
-
-/**
- * @deprecated Please use {@link SchemaContextListener} instead.
- */
-@Deprecated
-public interface SchemaServiceListener extends EventListener {
-    void onGlobalContextUpdated(SchemaContext context);
-}