- public PceProvider(RpcProviderRegistry rpcProviderRegistry, PathComputationService pathComputationService) {
- this.rpcRegistry = rpcProviderRegistry;
- this.pathComputationService = pathComputationService;
- }
-
- /*
- * Method called when the blueprint container is created.
- */
- public void init() {
+ @Activate
+ public PceProvider(@Reference RpcProviderService rpcProviderService,
+ @Reference PathComputationService pathComputationService,
+ @Reference TransportpcePceService pceServiceRPCImpl) {
+ this.rpcService = rpcProviderService;
+ rpcRegistration = rpcService.registerRpcImplementation(TransportpcePceService.class, pceServiceRPCImpl);