Promote BindingRuntimeContext to binding-generator-api
[mdsal.git] / binding / mdsal-binding-dom-codec-osgi / src / main / java / org / opendaylight / mdsal / binding / dom / codec / osgi / BindingRuntimeContextService.java
1 /*
2  * Copyright (c) 2017 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.mdsal.binding.dom.codec.osgi;
9
10 import com.google.common.annotations.Beta;
11 import org.opendaylight.mdsal.binding.generator.api.BindingRuntimeContext;
12 import org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource;
13 import org.opendaylight.yangtools.yang.model.repo.spi.SchemaSourceProvider;
14
15 /**
16  * A {@link BindingRuntimeContext} enriched with the ability to look up {@link YangTextSchemaSource}s.
17  *
18  * @author Robert Varga
19  *
20  * @deprecated This service is exposed for transition purposes only.
21  */
22 @Deprecated
23 @Beta
24 public interface BindingRuntimeContextService extends SchemaSourceProvider<YangTextSchemaSource> {
25     /**
26      * Return the current {@link BindingRuntimeContext}.
27      *
28      * @return Current BindingRuntimeContext.
29      */
30     BindingRuntimeContext getBindingRuntimeContext();
31 }