[ 
https://issues.apache.org/jira/browse/FELIX-5054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre De Rop resolved FELIX-5054.
----------------------------------
    Resolution: Fixed

Implemented the improvement in revision 1705147.

> Clean-up instance bound dependencies when component is destroyed
> ----------------------------------------------------------------
>
>                 Key: FELIX-5054
>                 URL: https://issues.apache.org/jira/browse/FELIX-5054
>             Project: Felix
>          Issue Type: Improvement
>          Components: Dependency Manager
>    Affects Versions:          org.apache.felix.dependencymanager-r5
>            Reporter: Pierre De Rop
>            Assignee: Pierre De Rop
>            Priority: Minor
>             Fix For: org.apache.felix.dependencymanager-r6
>
>
> Currently, when a component adds a dependency dynamically from its init() 
> callback or during the life of the component, then if the component goes 
> through multiple init/destroy/init cycles, then all instance bound 
> dependencies must be manually removed from the destroy() callback.
> If the instance bound dependencies are not removed from destroy(), then the 
> next time the component is initialized again (init/destroy/init cycles), then 
> the same instance bound dependencies would then be re-added and duplicated.
> So, the intent of this improvement issue is just to automatically clean-up 
> instance bound dependencies when the component is destroyed. This way, if the 
> component is initialized again, then the earlier added instance bound 
> dependencies are gone, and the init() method can re-add them safely (we won't 
> have duplicated instance bound dependencies in the component).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to