X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=binding%2Fmdsal-binding-dom-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fmdsal%2Fbinding%2Fdom%2Fcodec%2Fimpl%2FRpcInputCodec.java;fp=binding%2Fmdsal-binding-dom-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fmdsal%2Fbinding%2Fdom%2Fcodec%2Fimpl%2FRpcInputCodec.java;h=288de7ded011fe49dd1cefcd6567228d48aaf6b6;hb=dc51015f64da8ca865df08fcf452d24eecccc62c;hp=0000000000000000000000000000000000000000;hpb=be3497e16055abc7a52e6dac164d6f2b4cf537e5;p=mdsal.git diff --git a/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/RpcInputCodec.java b/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/RpcInputCodec.java new file mode 100644 index 0000000000..288de7ded0 --- /dev/null +++ b/binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/RpcInputCodec.java @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2017 Pantheon Technologies, s.r.o. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ +package org.opendaylight.mdsal.binding.dom.codec.impl; + +import org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeCodec; +import org.opendaylight.yangtools.yang.binding.DataObject; + +/** + * Marker interface for codecs dealing with RPC input being potentially unmapped. We use this interface to mark both + * {@link UnmappedRpcInputCodec} and {@link ContainerNodeCodecContext}, which results in bimorphic invocation in + * {@link BindingNormalizedNodeCodecRegistry#fromNormalizedNodeRpcData()}. + * + *

+ * Without this interface we could end up with megamorphic invocation, as the two implementations cannot share class + * hierarchy. + * + * @author Robert Varga + * + * @param Binding representation of data + */ +interface RpcInputCodec extends BindingNormalizedNodeCodec { + +}