30027ec929b2529d366de9c7fd5c6d0fe25f5d7d
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / sal / dom / broker / osgi / DataBrokerServiceProxy.java
1 /*
2  * Copyright (c) 2014 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.dom.broker.osgi;
9
10 import org.opendaylight.controller.sal.core.api.data.DataBrokerService;
11 import org.opendaylight.controller.sal.core.api.data.DataChangeListener;
12 import org.opendaylight.controller.sal.core.api.data.DataModificationTransaction;
13 import org.opendaylight.yangtools.concepts.ListenerRegistration;
14 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
15 import org.opendaylight.yangtools.yang.data.api.InstanceIdentifier;
16 import org.osgi.framework.ServiceReference;
17
18 public class DataBrokerServiceProxy extends AbstractBrokerServiceProxy<DataBrokerService> implements DataBrokerService {
19
20     public DataBrokerServiceProxy(ServiceReference<DataBrokerService> ref, DataBrokerService delegate) {
21         super(ref, delegate);
22     }
23
24     public ListenerRegistration<DataChangeListener> registerDataChangeListener(InstanceIdentifier path,
25             DataChangeListener listener) {
26         return addRegistration(getDelegate().registerDataChangeListener(path, listener));
27     }
28
29     public CompositeNode readConfigurationData(InstanceIdentifier path) {
30         return getDelegate().readConfigurationData(path);
31     }
32
33     public CompositeNode readOperationalData(InstanceIdentifier path) {
34         return getDelegate().readOperationalData(path);
35     }
36
37     public DataModificationTransaction beginTransaction() {
38         return getDelegate().beginTransaction();
39     }
40
41
42 }

©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.