Deprecate old MD-SAL APIs for removal
[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 @Deprecated(forRemoval = true)
19 public class LegacyDOMDataBrokerAdapter extends AbstractLegacyDOMDataBrokerAdapter {
20     public LegacyDOMDataBrokerAdapter(final org.opendaylight.mdsal.dom.api.DOMDataBroker delegate) {
21         super(delegate);
22     }
23
24     @Override
25     DOMTransactionChain createDelegateChain(DOMTransactionChainListener listener) {
26         return delegate().createTransactionChain(listener);
27     }
28 }