fix some karaf runtime errors
[transportpce.git] / tests / stubrenderer / src / main / java / org / opendaylight / transportpce / stubrenderer / impl / StubrendererProvider.java
index 6dcdb8ebc2e87185de46049184eec92aa21d1bef..0beb0873a64129c48767494507898c17fe318d74 100644 (file)
@@ -45,8 +45,8 @@ public class StubrendererProvider {
      */
     public void init() {
         LOG.info("StubrendererProvider Session Initiated");
-        final StubrendererImpl consumer = new StubrendererImpl(notificationPublishService);
-        rpcRegistration = rpcRegistry.addRpcImplementation(StubrendererService.class, consumer);
+        final StubrendererImpl consumer = new StubrendererImpl(this.notificationPublishService);
+        this.rpcRegistration = this.rpcRegistry.addRpcImplementation(StubrendererService.class, consumer);
     }
 
     /**
@@ -54,7 +54,6 @@ public class StubrendererProvider {
      */
     public void close() {
         LOG.info("StubrendererProvider Closed");
-        rpcRegistration.close();
-        stubRendererlistenerRegistration.close();
+        this.rpcRegistration.close();
     }
 }