Clean up of binding broker implementation
[controller.git] / opendaylight / sal / yang-prototype / sal / sal-core-api / src / main / java / org / opendaylight / controller / sal / core / api / model / SchemaService.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.sal.core.api.model;
9
10 import org.opendaylight.controller.sal.core.api.BrokerService;
11 import org.opendaylight.yangtools.yang.model.api.Module;
12 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
13
14 public interface SchemaService extends BrokerService {
15
16     /**
17      * Registers a YANG module to session and global context 
18      * 
19      * @param module
20      */
21     void addModule(Module module);
22     
23     /**
24      * Unregisters a YANG module from session context
25      * 
26      * @param module
27      */
28     void removeModule(Module module);
29     
30     /**
31      * Returns session specific YANG schema context
32      * @return
33      */
34     SchemaContext getSessionContext();
35     
36     /**
37      * Returns global schema context
38      * 
39      * @return
40      */
41     SchemaContext getGlobalContext();
42 }