Merge changes I8598d0bd,I560c2072
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / sal / core / api / model / SchemaService.java
index 52f60b3cc28728a7dce4a2435bfe1e97bb6a2e0c..34e5b1b8033d2cbda100b1fe6b0552af983abee3 100644 (file)
@@ -8,35 +8,39 @@
 package org.opendaylight.controller.sal.core.api.model;
 
 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.SchemaServiceListener;
 
 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);
 }