2 * Copyright (c) 2015 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.mdsal.dom.spi;
10 import com.google.common.collect.ForwardingObject;
11 import com.google.common.util.concurrent.CheckedFuture;
12 import javax.annotation.Nonnull;
13 import org.opendaylight.mdsal.dom.api.DOMRpcException;
14 import org.opendaylight.mdsal.dom.api.DOMRpcIdentifier;
15 import org.opendaylight.mdsal.dom.api.DOMRpcImplementation;
16 import org.opendaylight.mdsal.dom.api.DOMRpcResult;
17 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
20 * Utility implementation which implements {@link DOMRpcImplementation} by forwarding it to
23 public abstract class ForwardingDOMRpcImplementation extends ForwardingObject implements DOMRpcImplementation {
26 protected abstract DOMRpcImplementation delegate();
29 public CheckedFuture<DOMRpcResult, DOMRpcException> invokeRpc(
30 final DOMRpcIdentifier type, final NormalizedNode<?, ?> input) {
31 return delegate().invokeRpc(type, input);