Add SchemaContextListener and deprecate SchemaServiceListener 89/4789/1
authorRobert Varga <rovarga@cisco.com>
Sun, 26 Jan 2014 09:12:11 +0000 (10:12 +0100)
committerRobert Varga <rovarga@cisco.com>
Sun, 26 Jan 2014 09:12:32 +0000 (10:12 +0100)
Change-Id: Ie760ed9fe850d678748508a0bf93b1e5d6b421c0
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaContextListener.java [new file with mode: 0644]
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaServiceListener.java

diff --git a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaContextListener.java b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaContextListener.java
new file mode 100644 (file)
index 0000000..8de563c
--- /dev/null
@@ -0,0 +1,16 @@
+/*
+ * 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;
+
+import org.opendaylight.yangtools.yang.model.api.SchemaContext;
+
+public interface SchemaContextListener extends SchemaServiceListener {
+
+}
index 15b0ab26230265b54c223bc13ddb0b9058b07218..c629333a978a65774f4d11d9a2c935380b977544 100644 (file)
@@ -11,9 +11,12 @@ import java.util.EventListener;
 
 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 
-// TODO rename to schemaContextListener
+/**
+ * @deprecated Please use {@link SchemaContextListener} instead.
+ */
+@Deprecated
 public interface SchemaServiceListener extends EventListener {
-
+    // FIXME: move declaration to SchemaContextListener
     void onGlobalContextUpdated(SchemaContext context);
 
 }