Deprecate old MD-SAL APIs for removal
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / md / sal / binding / spi / AdapterFactory.java
1 /*
2  * Copyright (c) 2018 Pantheon Technologies, s.r.o. 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.md.sal.binding.spi;
9
10 import com.google.common.annotations.Beta;
11 import org.eclipse.jdt.annotation.NonNullByDefault;
12 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
13 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
14
15 @Beta
16 @Deprecated(forRemoval = true)
17 @NonNullByDefault
18 public interface AdapterFactory {
19     /**
20      * Return a {@link DataBroker} implementation backed by the specified {@link DOMDataBroker}.
21      *
22      * @param domBroker Backing DOMDataBroker
23      * @return A DataBroker instance.
24      * @throws NullPointerException if {@code domBroker} is null.
25      */
26     DataBroker createDataBroker(DOMDataBroker domBroker);
27 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.