Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
As of FELIX-3184 support for MetaTypeProvider service has been added with a MetaTypeProviderTracker service tracker. This is so far created and started for each MetaTypeInformationImpl instance. This makes cleanup of the tracker hard.
Instead this tracker should be maintained on the MetaTypeServiceImpl and respective MetaTypeProvider services injected into the MetaTypeInformationImpl objects handed out by the service.
Likewise, the ManagedService[Factory] services implementing the MetaTypeProvider interface should be tracked in the MetaTypeServiceImpl rather than in the ServiceMetaTypeInformation objects. The trick here is to only provide such MetaTypeProviders to MetaTypeInformationImpl objects not reading meta type information from descriptors.