Remove deprecated controller.sal.core.api interfaces
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / sal / core / api / model / SchemaService.java
index 34e5b1b8033d2cbda100b1fe6b0552af983abee3..673849d09d84c53bad95f1b02d4391d91947c05a 100644 (file)
@@ -8,39 +8,48 @@
 package org.opendaylight.controller.sal.core.api.model;
 
 import org.opendaylight.controller.sal.core.api.BrokerService;
+import org.opendaylight.mdsal.dom.api.DOMSchemaService;
 import org.opendaylight.yangtools.concepts.ListenerRegistration;
 import org.opendaylight.yangtools.yang.model.api.Module;
 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.model.api.SchemaServiceListener;
+import org.opendaylight.yangtools.yang.model.api.SchemaContextListener;
 
-public interface SchemaService extends BrokerService {
+/**
+ * Deprecated.
+ *
+ * @deprecated Use {@link DOMSchemaService} instead.
+ */
+@Deprecated
+public interface SchemaService extends BrokerService, DOMSchemaService {
 
     /**
-     * Registers a YANG module to session and global context
-     *
-     * @param module
+     * Registers a YANG module to session and global context.
      */
     void addModule(Module module);
 
     /**
-     * Unregisters a YANG module from session context
-     *
-     * @param module
+     * Unregisters a YANG module from session context.
      */
     void removeModule(Module module);
 
     /**
-     * Returns session specific YANG schema context
-     * @return
+     * Returns session specific YANG schema context.
      */
+    @Override
     SchemaContext getSessionContext();
 
     /**
-     * Returns global schema context
-     *
-     * @return
+     * Returns global schema context.
      */
+    @Override
     SchemaContext getGlobalContext();
 
-    ListenerRegistration<SchemaServiceListener> registerSchemaServiceListener(SchemaServiceListener listener);
+    /**
+     * Register a listener for changes in schema context.
+     *
+     * @param listener Listener which should be registered
+     * @return Listener registration handle
+     */
+    @Override
+    ListenerRegistration<SchemaContextListener> registerSchemaContextListener(SchemaContextListener listener);
 }