Initial opendaylight infrastructure commit!!
[controller.git] / opendaylight / sal / yang-prototype / sal / sal-binding-api / src / main / java / org / opendaylight / controller / sal / binding / api / BindingAwareProvider.java
1 /*\r
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  */\r
8 package org.opendaylight.controller.sal.binding.api;\r
9 \r
10 import java.util.Collection;\r
11 \r
12 import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ConsumerSession;\r
13 import org.opendaylight.controller.yang.binding.RpcService;\r
14 \r
15 \r
16 /**\r
17  * \r
18  * Defines the component of controller and supplies additional metadata. A\r
19  * component of the controller or application supplies a concrete implementation\r
20  * of this interface.\r
21  * \r
22  * <p>\r
23  * A user-implemented component (application) which facilitates the SAL and SAL\r
24  * services to access infrastructure services and to provide functionality to\r
25  * {@link Consumer}s and other providers.\r
26  * \r
27 \r
28  * \r
29  */\r
30 public interface BindingAwareProvider {\r
31 \r
32     void onSessionInitialized(ConsumerSession session);\r
33 \r
34     /**\r
35      * Returns a set of provided implementations of YANG modules and their rpcs.\r
36      * \r
37      * \r
38      * @return Set of provided implementation of YANG modules and their Rpcs\r
39      */\r
40     Collection<? extends RpcService> getImplementations();\r
41 \r
42     /**\r
43      * Gets a set of implementations of provider functionality to be registered\r
44      * into system during the provider registration to the SAL.\r
45      * \r
46      * <p>\r
47      * This method is invoked by {@link Broker#registerProvider(Provider)} to\r
48      * learn the initial provided functionality\r
49      * \r
50      * @return Set of provider's functionality.\r
51      */\r
52     Collection<? extends ProviderFunctionality> getFunctionality();\r
53 \r
54     /**\r
55      * Functionality provided by the {@link BindingAwareProvider}\r
56      * \r
57      * <p>\r
58      * Marker interface used to mark the interfaces describing specific\r
59      * functionality which could be exposed by providers to other components.\r
60      * \r
61 \r
62      * \r
63      */\r
64     public interface ProviderFunctionality {\r
65 \r
66     }\r
67 \r
68 }\r