Merge "BUG-628 Allow configuration to override module based capabilities from remote...
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / sal / core / api / model / SchemaService.java
index b34c8d4c001b505a3a8e0f4b82d9122d5b6be5ce..c3e979c536b268c4a6156b7241e745f328569618 100644 (file)
@@ -11,35 +11,42 @@ import org.opendaylight.controller.sal.core.api.BrokerService;
 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.SchemaContextListener;
 
 public interface SchemaService extends BrokerService {
 
     /**
-     * Registers a YANG module to session and global context 
-     * 
+     * Registers a YANG module to session and global context
+     *
      * @param module
      */
     void addModule(Module module);
-    
+
     /**
      * Unregisters a YANG module from session context
-     * 
+     *
      * @param module
      */
     void removeModule(Module module);
-    
+
     /**
      * Returns session specific YANG schema context
      * @return
      */
     SchemaContext getSessionContext();
-    
+
     /**
      * Returns global schema context
-     * 
+     *
      * @return
      */
     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
+     */
+    ListenerRegistration<SchemaContextListener> registerSchemaContextListener(SchemaContextListener listener);
 }