Merge "- Added exi capability utilities, handlers and necessary modifications - Exi...
[controller.git] / opendaylight / md-sal / sal-dom-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.concepts.ListenerRegistration;
12 import org.opendaylight.yangtools.yang.model.api.Module;
13 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
14
15 public interface SchemaService extends BrokerService {
16
17     /**
18      * Registers a YANG module to session and global context 
19      * 
20      * @param module
21      */
22     void addModule(Module module);
23     
24     /**
25      * Unregisters a YANG module from session context
26      * 
27      * @param module
28      */
29     void removeModule(Module module);
30     
31     /**
32      * Returns session specific YANG schema context
33      * @return
34      */
35     SchemaContext getSessionContext();
36     
37     /**
38      * Returns global schema context
39      * 
40      * @return
41      */
42     SchemaContext getGlobalContext();
43     
44     ListenerRegistration<SchemaServiceListener> registerSchemaServiceListener(SchemaServiceListener listener);
45 }