2 * Copyright © 2018 Orange 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
9 package org.opendaylight.transportpce.olm.stub;
11 import org.opendaylight.controller.md.sal.common.api.routing.RouteChangeListener;
12 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker;
13 import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry;
14 import org.opendaylight.controller.sal.binding.api.rpc.RpcContextIdentifier;
15 import org.opendaylight.yangtools.concepts.ListenerRegistration;
16 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
17 import org.opendaylight.yangtools.yang.binding.RpcService;
19 public class RpcProviderRegistryStub implements RpcProviderRegistry {
20 @Override public <T extends RpcService> BindingAwareBroker.RpcRegistration<T> addRpcImplementation(
21 Class<T> serviceInterface, T implementation) throws IllegalStateException {
22 return new CompositeRoutedRpcRegistrationStub(serviceInterface, implementation, null);
25 @Override public <T extends RpcService> BindingAwareBroker.RoutedRpcRegistration<T> addRoutedRpcImplementation(
26 Class<T> serviceInterface, T implementation) throws IllegalStateException {
30 @Override public <L extends RouteChangeListener<RpcContextIdentifier,
31 InstanceIdentifier<?>>> ListenerRegistration<L> registerRouteChangeListener(L listener) {
35 @Override public <T extends RpcService> T getRpcService(Class<T> serviceInterface) {