2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.sal.core.api.model;
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 import org.opendaylight.yangtools.yang.model.api.SchemaContextListener;
17 * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMSchemaService} instead.
20 public interface SchemaService extends BrokerService {
23 * Registers a YANG module to session and global context
25 void addModule(Module module);
28 * Unregisters a YANG module from session context
30 void removeModule(Module module);
33 * Returns session specific YANG schema context
35 SchemaContext getSessionContext();
38 * Returns global schema context
40 SchemaContext getGlobalContext();
43 * Register a listener for changes in schema context.
45 * @param listener Listener which should be registered
46 * @return Listener registration handle
48 ListenerRegistration<SchemaContextListener> registerSchemaContextListener(SchemaContextListener listener);