Initial opendaylight infrastructure commit!!
[controller.git] / opendaylight / sal / yang-prototype / sal / sal-core-spi / src / main / java / org / opendaylight / controller / sal / core / spi / BrokerModule.java
diff --git a/opendaylight/sal/yang-prototype/sal/sal-core-spi/src/main/java/org/opendaylight/controller/sal/core/spi/BrokerModule.java b/opendaylight/sal/yang-prototype/sal/sal-core-spi/src/main/java/org/opendaylight/controller/sal/core/spi/BrokerModule.java
new file mode 100644 (file)
index 0000000..99438c8
--- /dev/null
@@ -0,0 +1,27 @@
+/*\r
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
+ *\r
+ * This program and the accompanying materials are made available under the\r
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
+ * and is available at http://www.eclipse.org/legal/epl-v10.html\r
+ */\r
+package org.opendaylight.controller.sal.core.spi;\r
+\r
+import java.util.Set;\r
+\r
+import org.opendaylight.controller.sal.core.api.BrokerService;\r
+import org.opendaylight.controller.sal.core.api.Broker.ConsumerSession;\r
+import org.opendaylight.controller.sal.core.api.Consumer.ConsumerFunctionality;\r
+import org.opendaylight.controller.sal.core.api.Provider.ProviderFunctionality;\r
+\r
+public interface BrokerModule {\r
+\r
+    Set<Class<? extends BrokerService>> getProvidedServices();\r
+\r
+    Set<Class<? extends ConsumerFunctionality>> getSupportedConsumerFunctionality();\r
+\r
+    <T extends BrokerService> T getServiceForSession(Class<T> service,\r
+            ConsumerSession session);\r
+\r
+    Set<Class<? extends ProviderFunctionality>> getSupportedProviderFunctionality();\r
+}\r