Initial opendaylight infrastructure commit!!
[controller.git] / opendaylight / sal / yang-prototype / sal / sal-broker-impl / src / main / java / org / opendaylight / controller / sal / core / impl / ProviderSessionImpl.java
diff --git a/opendaylight/sal/yang-prototype/sal/sal-broker-impl/src/main/java/org/opendaylight/controller/sal/core/impl/ProviderSessionImpl.java b/opendaylight/sal/yang-prototype/sal/sal-broker-impl/src/main/java/org/opendaylight/controller/sal/core/impl/ProviderSessionImpl.java
new file mode 100644 (file)
index 0000000..e87b8bb
--- /dev/null
@@ -0,0 +1,48 @@
+
+/*\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.impl;\r
+\r
+import java.util.Set;\r
+\r
+import org.opendaylight.controller.sal.core.api.Provider;\r
+import org.opendaylight.controller.sal.core.api.RpcImplementation;\r
+import org.opendaylight.controller.sal.core.api.Broker.ProviderSession;\r
+import org.opendaylight.controller.yang.common.QName;
+\r
+\r
+public class ProviderSessionImpl extends ConsumerSessionImpl implements\r
+        ProviderSession {\r
+\r
+    private Provider provider;\r
+\r
+    public ProviderSessionImpl(BrokerImpl broker, Provider provider) {\r
+        super(broker, null);\r
+        this.provider = provider;\r
+    }\r
+\r
+    @Override\r
+    public void addRpcImplementation(QName rpcType,\r
+            RpcImplementation implementation) throws IllegalArgumentException {\r
+        // TODO Implement this method\r
+        throw new UnsupportedOperationException("Not implemented");\r
+    }\r
+\r
+    @Override\r
+    public void removeRpcImplementation(QName rpcType,\r
+            RpcImplementation implementation) throws IllegalArgumentException {\r
+        // TODO Implement this method\r
+        throw new UnsupportedOperationException("Not implemented");\r
+    }\r
+\r
+    public Provider getProvider() {\r
+        return this.provider;\r
+    }\r
+\r
+}\r
+