- final ServicehandlerImpl consumer = new ServicehandlerImpl(dataBroker, rpcRegistry, notificationPublishService);
- stubPcelistenerRegistration = notificationService.registerNotificationListener(consumer);
- stubRendererlistenerRegistration = notificationService.registerNotificationListener(consumer);
- rpcRegistration = rpcRegistry.addRpcImplementation(ServicehandlerService.class, consumer);
+ final PceListenerImpl pceListenerImpl = new PceListenerImpl(rendererServiceOperations,
+ pathComputationService, notificationPublishService, null);
+ final RendererListenerImpl rendererListenerImpl =
+ new RendererListenerImpl(pathComputationService, notificationPublishService);
+ pcelistenerRegistration = notificationService.registerNotificationListener(pceListenerImpl);
+ rendererlistenerRegistration = notificationService.registerNotificationListener(rendererListenerImpl);
+ final ServicehandlerImpl servicehandler = new ServicehandlerImpl(dataBroker, pathComputationService,
+ rendererServiceOperations, notificationPublishService, pceListenerImpl, rendererListenerImpl,
+ networkModelWavelengthService);
+ rpcRegistration =
+ rpcService.registerRpcImplementation(OrgOpenroadmServiceService.class, servicehandler);