Merge "BUG-1793: make sure we cache QNameModule"
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / SchemaContextListener.java
index 435f6308a6efa4e8f90e4b7bb187fbcd81462696..89bbffa058f27338f4bea6a07c79abedfb161032 100644 (file)
@@ -7,6 +7,18 @@
  */
 package org.opendaylight.yangtools.yang.model.api;
 
-public interface SchemaContextListener extends SchemaServiceListener {
+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);
 }