Bug 6859 #3 Binding generator v1 refactoring
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / yangtools / binding / data / codec / api / BindingCodecTreeFactory.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. 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.yangtools.binding.data.codec.api;
9
10 import com.google.common.annotations.Beta;
11 import org.opendaylight.mdsal.binding.generator.util.BindingRuntimeContext;
12 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
13
14
15 /**
16  *
17  * @deprecated Use {@link org.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTreeFactory}
18  *             instead.
19  */
20 @Deprecated
21 public interface BindingCodecTreeFactory {
22
23     /**
24      *
25      * Creates Binding Codec Tree for specified Binding runtime context.
26      *
27      * @param context
28      *            Binding Runtime Context for which Binding codecs should be
29      *            instantiated.
30      * @return Binding Codec Tree for specified Binding runtime context.
31      */
32     BindingCodecTree create(BindingRuntimeContext context);
33
34     /**
35      *
36      * Creates Binding Codec Tree for specified Binding runtime context.
37      *
38      * @param context
39      *            Binding Runtime Context for which Binding codecs should be
40      *            instantiated.
41      * @param bindingClasses
42      *            Binding Runtime Context will be constructed using bindings
43      *            which contains specified classes, in order to support
44      *            deserialization in multi-classloader environment.
45      * @return Binding Codec Tree for specified Binding runtime context.
46      */
47     @Beta
48    BindingCodecTree create(SchemaContext context, Class<?>... bindingClasses);
49
50 }