Added support for binding-independent RPCs
[controller.git] / opendaylight / sal / yang-prototype / sal / sal-core-api / src / main / java / org / opendaylight / controller / sal / core / api / model / SchemaService.java
diff --git a/opendaylight/sal/yang-prototype/sal/sal-core-api/src/main/java/org/opendaylight/controller/sal/core/api/model/SchemaService.java b/opendaylight/sal/yang-prototype/sal/sal-core-api/src/main/java/org/opendaylight/controller/sal/core/api/model/SchemaService.java
new file mode 100644 (file)
index 0000000..22abdc2
--- /dev/null
@@ -0,0 +1,42 @@
+/*\r
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
+ *\r
+ * This program and the accompanying materials are made available under the\r
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
+ * and is available at http://www.eclipse.org/legal/epl-v10.html\r
+ */\r
+package org.opendaylight.controller.sal.core.api.model;\r
+\r
+import org.opendaylight.controller.sal.core.api.BrokerService;\r
+import org.opendaylight.controller.yang.model.api.Module;\r
+import org.opendaylight.controller.yang.model.api.SchemaContext;\r
+\r
+public interface SchemaService extends BrokerService {\r
+\r
+    /**\r
+     * Registers a YANG module to session and global context \r
+     * \r
+     * @param module\r
+     */\r
+    void addModule(Module module);\r
+    \r
+    /**\r
+     * Unregisters a YANG module from session context\r
+     * \r
+     * @param module\r
+     */\r
+    void removeModule(Module module);\r
+    \r
+    /**\r
+     * Returns session specific YANG schema context\r
+     * @return\r
+     */\r
+    SchemaContext getSessionContext();\r
+    \r
+    /**\r
+     * Returns global schema context\r
+     * \r
+     * @return\r
+     */\r
+    SchemaContext getGlobalContext();\r
+}\r