2 * Copyright (c) 2014 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
8 package org.opendaylight.controller.sal.dom.broker.osgi;
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;
18 public class DataBrokerServiceProxy extends AbstractBrokerServiceProxy<DataBrokerService> implements DataBrokerService {
20 public DataBrokerServiceProxy(ServiceReference<DataBrokerService> ref, DataBrokerService delegate) {
24 public ListenerRegistration<DataChangeListener> registerDataChangeListener(YangInstanceIdentifier path,
25 DataChangeListener listener) {
26 return addRegistration(getDelegate().registerDataChangeListener(path, listener));
29 public CompositeNode readConfigurationData(YangInstanceIdentifier path) {
30 return getDelegate().readConfigurationData(path);
33 public CompositeNode readOperationalData(YangInstanceIdentifier path) {
34 return getDelegate().readOperationalData(path);
37 public DataModificationTransaction beginTransaction() {
38 return getDelegate().beginTransaction();