pderop opened a new pull request, #605:
URL: https://github.com/apache/felix-dev/pull/605

   Motivation:
   
   When a component loses a required dependency but its instance is kept (one 
of its dependencies needs the instance, the default for a 
ConfigurationDependency), its auto-configured Collection/Map fields are not 
cleaned. On restart, the services are copied again on top of the old content: 
the fields contain services that are gone, and duplicates.
   
   Modification:
   
   When the component goes back to waiting for required dependencies and keeps 
its instance, ComponentImpl removes the injected services from the 
auto-configured fields. They are injected again when the component restarts. A 
unit test reproduces the scenarios.
   
   Result:
   
   On restart, auto-configured Collection/Map fields only contain the currently 
available services, each one once.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to