BUG-1092: adjust to YangInstanceIdentifier
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / sal / dom / broker / osgi / DOMDataBrokerProxy.java
1 package org.opendaylight.controller.sal.dom.broker.osgi;
2
3 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
4 import org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener;
5 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
6 import org.opendaylight.controller.md.sal.dom.api.DOMDataChangeListener;
7 import org.opendaylight.controller.md.sal.dom.api.DOMDataReadOnlyTransaction;
8 import org.opendaylight.controller.md.sal.dom.api.DOMDataReadWriteTransaction;
9 import org.opendaylight.controller.md.sal.dom.api.DOMDataWriteTransaction;
10 import org.opendaylight.controller.md.sal.dom.api.DOMTransactionChain;
11 import org.opendaylight.yangtools.concepts.ListenerRegistration;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
13 import org.osgi.framework.ServiceReference;
14
15 public class DOMDataBrokerProxy extends AbstractBrokerServiceProxy<DOMDataBroker> implements DOMDataBroker {
16
17     public DOMDataBrokerProxy(final ServiceReference<DOMDataBroker> ref, final DOMDataBroker delegate) {
18         super(ref, delegate);
19     }
20
21     @Override
22     public DOMDataReadOnlyTransaction newReadOnlyTransaction() {
23         return getDelegate().newReadOnlyTransaction();
24     }
25
26     @Override
27     public DOMDataReadWriteTransaction newReadWriteTransaction() {
28         return getDelegate().newReadWriteTransaction();
29     }
30
31     @Override
32     public DOMDataWriteTransaction newWriteOnlyTransaction() {
33         return getDelegate().newWriteOnlyTransaction();
34     }
35
36     @Override
37     public ListenerRegistration<DOMDataChangeListener> registerDataChangeListener(final LogicalDatastoreType store,
38             final YangInstanceIdentifier path, final DOMDataChangeListener listener,
39             final org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker.DataChangeScope triggeringScope) {
40         return getDelegate().registerDataChangeListener(store, path, listener, triggeringScope);
41     }
42
43     @Override
44     public DOMTransactionChain createTransactionChain(final TransactionChainListener listener) {
45         return getDelegate().createTransactionChain(listener);
46     }
47
48 }

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