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.broker;
10 import java.util.List;
12 import org.eclipse.jdt.annotation.NonNull;
13 import org.opendaylight.mdsal.dom.api.DOMRpcIdentifier;
14 import org.opendaylight.mdsal.dom.api.DOMRpcImplementation;
15 import org.opendaylight.yangtools.yang.common.QName;
16 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
18 final class GlobalDOMRpcRoutingTableEntry extends AbstractDOMRpcRoutingTableEntry {
19 private GlobalDOMRpcRoutingTableEntry(final DOMRpcIdentifier rpcId,
20 final Map<YangInstanceIdentifier, List<DOMRpcImplementation>> impls) {
24 // We do not need the RpcDefinition, but this makes sure we do not
25 // forward something we don't know to be an RPC.
26 GlobalDOMRpcRoutingTableEntry(final @NonNull QName rpcName,
27 final Map<YangInstanceIdentifier, List<DOMRpcImplementation>> impls) {
28 super(DOMRpcIdentifier.create(rpcName), impls);
32 protected GlobalDOMRpcRoutingTableEntry newInstance(
33 final Map<YangInstanceIdentifier, List<DOMRpcImplementation>> impls) {
34 return new GlobalDOMRpcRoutingTableEntry(getRpcId(), impls);