/* * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.controller.sal.dom.broker.osgi; import org.opendaylight.controller.sal.core.api.data.DataBrokerService; import org.opendaylight.controller.sal.core.api.data.DataChangeListener; import org.opendaylight.controller.sal.core.api.data.DataModificationTransaction; import org.opendaylight.yangtools.concepts.ListenerRegistration; import org.opendaylight.yangtools.yang.data.api.CompositeNode; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; import org.osgi.framework.ServiceReference; public class DataBrokerServiceProxy extends AbstractBrokerServiceProxy implements DataBrokerService { public DataBrokerServiceProxy(ServiceReference ref, DataBrokerService delegate) { super(ref, delegate); } public ListenerRegistration registerDataChangeListener(YangInstanceIdentifier path, DataChangeListener listener) { return addRegistration(getDelegate().registerDataChangeListener(path, listener)); } public CompositeNode readConfigurationData(YangInstanceIdentifier path) { return getDelegate().readConfigurationData(path); } public CompositeNode readOperationalData(YangInstanceIdentifier path) { return getDelegate().readOperationalData(path); } public DataModificationTransaction beginTransaction() { return getDelegate().beginTransaction(); } }