BUG 2854 : Do not add empty read write transactions to the replicable journal
[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.YangInstanceIdentifier;
16 import org.osgi.framework.ServiceReference;
17
18 @Deprecated
19 public class DataBrokerServiceProxy extends AbstractBrokerServiceProxy<DataBrokerService> implements DataBrokerService {
20
21     public DataBrokerServiceProxy(ServiceReference<DataBrokerService> ref, DataBrokerService delegate) {
22         super(ref, delegate);
23     }
24
25     public ListenerRegistration<DataChangeListener> registerDataChangeListener(YangInstanceIdentifier path,
26             DataChangeListener listener) {
27         return addRegistration(getDelegate().registerDataChangeListener(path, listener));
28     }
29
30     public CompositeNode readConfigurationData(YangInstanceIdentifier path) {
31         return getDelegate().readConfigurationData(path);
32     }
33
34     public CompositeNode readOperationalData(YangInstanceIdentifier path) {
35         return getDelegate().readOperationalData(path);
36     }
37
38     public DataModificationTransaction beginTransaction() {
39         return getDelegate().beginTransaction();
40     }
41 }