Binding2 runtime - Codecs impl - codecs - part4
[mdsal.git] / binding2 / mdsal-binding2-dom-codec / src / main / java / org / opendaylight / mdsal / binding / javav2 / dom / codec / impl / OperationInputCodec.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.javav2.dom.codec.impl;
9
10 import com.google.common.annotations.Beta;
11 import org.opendaylight.mdsal.binding.javav2.dom.codec.api.BindingNormalizedNodeCodec;
12 import org.opendaylight.mdsal.binding.javav2.spec.base.TreeNode;
13
14 /**
15  * Marker interface for codecs dealing with operation input being potentially unmapped. We use this interface
16  * to mark both {@link UnmappedOperationInputCodec} and ContainerNodeCodecContext, which results in bimorphic
17  * invocation in BindingNormalizedNodeCodecRegistry.
18  *
19  * Without this interface we could end up with megamorphic invocation, as the two implementations cannot share
20  * class hierarchy.
21  *
22  * @param <D>
23  *            - Binding representation of data
24  */
25 @Beta
26 public interface OperationInputCodec<D extends TreeNode> extends BindingNormalizedNodeCodec<D> {
27
28 }