Remove deprecated controller.sal.core.api interfaces
[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.mdsal.dom.api.DOMSchemaService;
12 import org.opendaylight.yangtools.concepts.ListenerRegistration;
13 import org.opendaylight.yangtools.yang.model.api.Module;
14 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
15 import org.opendaylight.yangtools.yang.model.api.SchemaContextListener;
16
17 /**
18  * Deprecated.
19  *
20  * @deprecated Use {@link DOMSchemaService} instead.
21  */
22 @Deprecated
23 public interface SchemaService extends BrokerService, DOMSchemaService {
24
25     /**
26      * Registers a YANG module to session and global context.
27      */
28     void addModule(Module module);
29
30     /**
31      * Unregisters a YANG module from session context.
32      */
33     void removeModule(Module module);
34
35     /**
36      * Returns session specific YANG schema context.
37      */
38     @Override
39     SchemaContext getSessionContext();
40
41     /**
42      * Returns global schema context.
43      */
44     @Override
45     SchemaContext getGlobalContext();
46
47     /**
48      * Register a listener for changes in schema context.
49      *
50      * @param listener Listener which should be registered
51      * @return Listener registration handle
52      */
53     @Override
54     ListenerRegistration<SchemaContextListener> registerSchemaContextListener(SchemaContextListener listener);
55 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.