2 * Copyright (c) 2014 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.yangtools.binding.data.codec.gen.impl;
10 import org.opendaylight.mdsal.binding.generator.util.BindingRuntimeContext;
11 import org.opendaylight.yangtools.yang.binding.DataObjectSerializerImplementation;
14 * Public interface exposed from generator implementation.
16 * @deprecated Use {@link org.opendaylight.mdsal.binding.dom.codec.gen.impl.DataObjectSerializerGenerator} instead.
19 public interface DataObjectSerializerGenerator {
21 * Get a serializer for a particular type.
23 * @param type Type class
24 * @return Serializer instance.
26 DataObjectSerializerImplementation getSerializer(Class<?> type);
29 * Notify the generator that the runtime context has been updated.
30 * @param runtime New runtime context
32 void onBindingRuntimeContextUpdated(BindingRuntimeContext runtime);