- final ServicehandlerImpl consumer = new ServicehandlerImpl(dataBroker, rpcRegistry, notificationPublishService);
- stubpcelistenerRegistration = notificationService.registerNotificationListener(consumer);
- stubrendererlistenerRegistration = notificationService.registerNotificationListener(consumer);
- rpcRegistration = rpcRegistry.addRpcImplementation(OrgOpenroadmServiceService.class, consumer);
+ final PceListenerImpl pceListenerImpl = new PceListenerImpl(rendererServiceOperations,
+ pathComputationService, notificationPublishService, null);
+ final RendererListenerImpl rendererListenerImpl =
+ new RendererListenerImpl(pathComputationService, notificationPublishService);
+ final NetworkModelListenerImpl networkModelListenerImpl =
+ new NetworkModelListenerImpl(notificationPublishService, null);
+ pcelistenerRegistration = notificationService.registerNotificationListener(pceListenerImpl);
+ rendererlistenerRegistration = notificationService.registerNotificationListener(rendererListenerImpl);
+ networkmodellistenerRegistration = notificationService.registerNotificationListener(networkModelListenerImpl);
+ final ServicehandlerImpl servicehandler = new ServicehandlerImpl(dataBroker, pathComputationService,
+ rendererServiceOperations, notificationPublishService, pceListenerImpl, rendererListenerImpl,
+ networkModelListenerImpl);
+ rpcRegistration =
+ rpcService.registerRpcImplementation(OrgOpenroadmServiceService.class, servicehandler);