Bump mdsal to 4.0.0
[controller.git] / opendaylight / md-sal / sal-dom-compat / src / main / java / org / opendaylight / controller / sal / core / compat / LegacyDOMDataBrokerAdapter.java
1 /*
2  * Copyright (c) 2017 Inocybe Technologies 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.core.compat;
9
10 import org.opendaylight.mdsal.dom.api.DOMTransactionChain;
11 import org.opendaylight.mdsal.dom.api.DOMTransactionChainListener;
12
13 /**
14  * Adapter between the legacy controller API-based DOMDataBroker and the mdsal API-based DOMDataBroker.
15  *
16  * @author Thomas Pantelis
17  */
18 public class LegacyDOMDataBrokerAdapter extends AbstractLegacyDOMDataBrokerAdapter {
19     public LegacyDOMDataBrokerAdapter(final org.opendaylight.mdsal.dom.api.DOMDataBroker delegate) {
20         super(delegate);
21     }
22
23     @Override
24     DOMTransactionChain createDelegateChain(DOMTransactionChainListener listener) {
25         return delegate().createTransactionChain(listener);
26     }
27 }