2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.mdsal.binding.dom.codec.api;
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;
14 public interface BindingCodecTreeFactory {
16 * Creates Binding Codec Tree for specified Binding runtime context.
19 * Binding Runtime Context for which Binding codecs should be
21 * @return Binding Codec Tree for specified Binding runtime context.
23 BindingCodecTree create(BindingRuntimeContext context);
26 * Creates Binding Codec Tree for specified Binding runtime context.
29 * Binding Runtime Context for which Binding codecs should be
31 * @param bindingClasses
32 * Binding Runtime Context will be constructed using bindings
33 * which contains specified classes, in order to support
34 * deserialization in multi-classloader environment.
35 * @return Binding Codec Tree for specified Binding runtime context.
38 BindingCodecTree create(SchemaContext context, Class<?>... bindingClasses);