Merge "sal-restconf-broker initial implementation needs https://git.opendaylight...
[controller.git] / opendaylight / md-sal / sal-binding-api / src / main / java / org / opendaylight / controller / sal / binding / api / RpcConsumerRegistry.java
1 /*
2  * Copyright (c) 2014 Cisco 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 package org.opendaylight.controller.sal.binding.api;
9
10 import org.opendaylight.yangtools.yang.binding.RpcService;
11
12 /**
13  * Base interface defining contract for retrieving MD-SAL
14  * version of RpcServices
15  * 
16  */
17 public interface RpcConsumerRegistry extends BindingAwareService {
18     /**
19      * Returns a session specific instance (implementation) of requested
20      * YANG module implentation / service provided by consumer.
21      * 
22      * @return Session specific implementation of service
23      */
24     <T extends RpcService> T getRpcService(Class<T> module);
25 }