2 * Copyright (c) 2017 Pantheon Technologies s.r.o. 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.javav2.dom.codec.generator.api;
10 import com.google.common.annotations.Beta;
11 import org.opendaylight.mdsal.binding.javav2.generator.impl.util.BindingRuntimeContext;
12 import org.opendaylight.mdsal.binding.javav2.spec.runtime.TreeNodeSerializerImplementation;
15 * Public interface exposed from generator implementation.
18 public interface TreeNodeSerializerGenerator {
21 * Get a serializer for a particular type.
23 * @param type - class of type
24 * @return serializer instance
26 TreeNodeSerializerImplementation getSerializer(Class<?> type);
29 * Notify the generator that the runtime context has been updated.
31 * @param runtime - new runtime context
33 void onBindingRuntimeContextUpdated(BindingRuntimeContext runtime);