BUG-8004: handle implicit RPC input
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / yangtools / binding / data / codec / impl / RpcInputDataObjectCodec.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.yangtools.binding.data.codec.impl;
9
10 import org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeCodec;
11 import org.opendaylight.yangtools.yang.binding.DataObject;
12
13 /**
14  * Marker interface for codecs dealing with RPC input being potentially unmapped. We use this interface to mark both
15  * {@link UnmappedRpcInputCodec} and {@link ContainerNodeCodecContext}, which results in bimorphic invocation in
16  * {@link BindingNormalizedNodeCodecRegistry#fromNormalizedNodeRpcData()}.
17  *
18  * Without this interface we could end up with megamorphic invocation, as the two implementations cannot share class
19  * hierarchy.
20  *
21  * @author Robert Varga
22  *
23  * @param <T> Binding representation of data
24  */
25 interface RpcInputCodec<D extends DataObject> extends BindingNormalizedNodeCodec<D> {
26
27 }