41e942d8db210fcc98c53d926d1720dd7934543e
[transportpce.git] / olm / src / test / java / org / opendaylight / transportpce / olm / stub / RpcProviderRegistryStub.java
1 /*
2  * Copyright © 2018 Orange Systems, Inc. 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
9 package org.opendaylight.transportpce.olm.stub;
10
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;
18
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);
23     }
24
25     @Override public <T extends RpcService> BindingAwareBroker.RoutedRpcRegistration<T> addRoutedRpcImplementation(
26         Class<T> serviceInterface, T implementation) throws IllegalStateException {
27         return null;
28     }
29
30     @Override public <L extends RouteChangeListener<RpcContextIdentifier,
31         InstanceIdentifier<?>>> ListenerRegistration<L> registerRouteChangeListener(L listener) {
32         return null;
33     }
34
35     @Override public <T extends RpcService> T getRpcService(Class<T> serviceInterface) {
36         return null;
37     }
38 }