Remove DOMSchemaService.getSessionContext()
[mdsal.git] / dom / mdsal-dom-api / src / main / java / org / opendaylight / mdsal / dom / api / DOMSchemaService.java
index 6e733bc7ec68a40a5a938fef5c163ecec38c1131..dfacb4889e95142bc88ee4f1891d069969a27cfc 100644 (file)
@@ -8,24 +8,16 @@
 package org.opendaylight.mdsal.dom.api;
 
 import org.opendaylight.yangtools.concepts.ListenerRegistration;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.model.api.SchemaContextListener;
-
-public interface DOMSchemaService extends DOMService {
-
-    /**
-     * Returns session specific YANG schema context.
-     *
-     * @return schemaContext
-     */
-    SchemaContext getSessionContext();
+import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
+import org.opendaylight.yangtools.yang.model.api.EffectiveModelContextListener;
 
+public interface DOMSchemaService extends DOMExtensibleService<DOMSchemaService, DOMSchemaServiceExtension> {
     /**
      * Returns global schema context.
      *
      * @return schemaContext
      */
-    SchemaContext getGlobalContext();
+    EffectiveModelContext getGlobalContext();
 
     /**
      * Register a listener for changes in schema context.
@@ -33,5 +25,6 @@ public interface DOMSchemaService extends DOMService {
      * @param listener Listener which should be registered
      * @return Listener registration handle
      */
-    ListenerRegistration<SchemaContextListener> registerSchemaContextListener(SchemaContextListener listener);
+    ListenerRegistration<EffectiveModelContextListener> registerSchemaContextListener(
+            EffectiveModelContextListener listener);
 }