[ROO-3673] Switch to ServiceTracker utility Created: 10/Sep/15  Updated: 11/Sep/15  Resolved: 11/Sep/15

Status: Resolved
Project: Spring Roo
Component/s: @ CORE
Affects Version/s: 2.0.0.M1
Fix Version/s: 2.0.0.M2

Type: Improvement Priority: Major
Reporter: Enrique Ruiz (DiSiD) Assignee: Enrique Ruiz (DiSiD)
Resolution: Complete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

On ROO-3553 we detected services cycle references at initialization time.

We solved it by moving from automatic service dependency resolution to manual way by calling the Service Registry (BundleContext.getAllServiceReferences()) to get the service references when they are needed.

It solved the cycle references problem but this solution doesn't manage the dynamic nature of OSGi services.

This task consist in migrating to ServiceTracker utility to hide the complexities of listening to and consuming dynamic services. By the moment we will migrate those service references that are used in the activate method.



 Comments   
Comment by Enrique Ruiz (DiSiD) [ 11/Sep/15 ]

Done.

Commit a1cb944b1313599602eaf0de57dec1740d1a05bb

Generated at Tue Nov 12 03:28:42 UTC 2019 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.