1 package org.opendaylight.controller.sal.dom.broker.osgi;
3 import org.opendaylight.controller.sal.core.api.model.SchemaService;
4 import org.opendaylight.yangtools.yang.model.api.SchemaServiceListener;
5 import org.opendaylight.yangtools.concepts.ListenerRegistration;
6 import org.opendaylight.yangtools.yang.model.api.Module;
7 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
8 import org.osgi.framework.ServiceReference;
10 public class SchemaServiceProxy extends AbstractBrokerServiceProxy<SchemaService> implements SchemaService {
12 public SchemaServiceProxy(ServiceReference<SchemaService> ref, SchemaService delegate) {
17 public void addModule(Module module) {
18 getDelegate().addModule(module);
22 public void removeModule(Module module) {
23 getDelegate().removeModule(module);
27 public SchemaContext getSessionContext() {
32 public SchemaContext getGlobalContext() {
33 return getDelegate().getGlobalContext();
37 public ListenerRegistration<SchemaServiceListener> registerSchemaServiceListener(SchemaServiceListener listener) {
38 ListenerRegistration<SchemaServiceListener> registration = getDelegate().registerSchemaServiceListener(listener);
39 addRegistration(registration);