Update to MD-SAL APIs
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / sal / dom / broker / ProviderContextImpl.xtend
index 8e402e2f36ca8fe6b265dcfe6ae434f17ef6646d..11f68d6e04fb41a64c26d6a4a0a92833390f6e1b 100644 (file)
@@ -30,9 +30,11 @@ class ProviderContextImpl extends ConsumerContextImpl implements ProviderSession
         }
         broker.addRpcImplementation(rpcType, implementation);
         rpcImpls.put(rpcType, implementation);
+        //FIXME: Return registration
+        return null;
     }
 
-    override removeRpcImplementation(QName rpcType, RpcImplementation implToRemove) throws IllegalArgumentException {
+    def removeRpcImplementation(QName rpcType, RpcImplementation implToRemove) throws IllegalArgumentException {
         val localImpl = rpcImpls.get(rpcType);
         if(localImpl != implToRemove) {
             throw new IllegalStateException(
@@ -42,5 +44,13 @@ class ProviderContextImpl extends ConsumerContextImpl implements ProviderSession
         broker.removeRpcImplementation(rpcType, implToRemove);
         rpcImpls.remove(rpcType);
     }
-
+    
+    override addMountedRpcImplementation(QName rpcType, RpcImplementation implementation) {
+        throw new UnsupportedOperationException("TODO: auto-generated method stub")
+    }
+    
+    override addRoutedRpcImplementation(QName rpcType, RpcImplementation implementation) {
+        throw new UnsupportedOperationException("TODO: auto-generated method stub")
+    }
+    
 }