Refactored implementation of Notification Invoker
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / sal / binding / impl / RpcServiceRegistrationImpl.xtend
index afb27b47c6a78572ab25e20f7f4c64e4838c0901..31694719bb41313c6df2d378593698f1ac340765 100644 (file)
@@ -7,11 +7,11 @@
  */
 package org.opendaylight.controller.sal.binding.impl
 
-import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.RpcServiceRegistration
 import org.osgi.framework.ServiceRegistration
 import org.opendaylight.yangtools.yang.binding.RpcService
+import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.RpcRegistration
 
-class RpcServiceRegistrationImpl<T extends RpcService> implements RpcServiceRegistration<T> {
+class RpcServiceRegistrationImpl<T extends RpcService> implements RpcRegistration<T> {
 
     val ServiceRegistration<T> osgiRegistration;
     private val T service;
@@ -26,8 +26,12 @@ class RpcServiceRegistrationImpl<T extends RpcService> implements RpcServiceRegi
     override getService() {
         this.service
     }
+    
+    override getInstance() {
+        this.service
+    }
 
-    override unregister() {
+    override close() {
         throw new UnsupportedOperationException("TODO: auto-generated method stub")
     }
 }