2 * Copyright (c) 2014, 2015 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
9 package org.opendaylight.controller.sal.dom.broker.osgi;
12 import org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener;
13 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
14 import org.opendaylight.controller.md.sal.dom.api.DOMDataBrokerExtension;
15 import org.opendaylight.controller.md.sal.dom.api.DOMDataReadOnlyTransaction;
16 import org.opendaylight.controller.md.sal.dom.api.DOMDataReadWriteTransaction;
17 import org.opendaylight.controller.md.sal.dom.api.DOMDataWriteTransaction;
18 import org.opendaylight.controller.md.sal.dom.api.DOMTransactionChain;
19 import org.osgi.framework.ServiceReference;
21 public class DOMDataBrokerProxy extends AbstractBrokerServiceProxy<DOMDataBroker> implements DOMDataBroker {
23 public DOMDataBrokerProxy(final ServiceReference<DOMDataBroker> ref, final DOMDataBroker delegate) {
28 public DOMDataReadOnlyTransaction newReadOnlyTransaction() {
29 return getDelegate().newReadOnlyTransaction();
33 public DOMDataReadWriteTransaction newReadWriteTransaction() {
34 return getDelegate().newReadWriteTransaction();
38 public DOMDataWriteTransaction newWriteOnlyTransaction() {
39 return getDelegate().newWriteOnlyTransaction();
43 public DOMTransactionChain createTransactionChain(final TransactionChainListener listener) {
44 return getDelegate().createTransactionChain(listener);
48 public Map<Class<? extends DOMDataBrokerExtension>, DOMDataBrokerExtension> getSupportedExtensions() {
49 return getDelegate().getSupportedExtensions();