[
https://issues.apache.org/jira/browse/FELIX-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcel Offermans resolved FELIX-3042.
-------------------------------------
Resolution: Fixed
I agree that this patch is an improvement. Moving the method makes a lot of
sense and improves the use case of directly working with a DependencyManager.
> [PATCH] Add a convenience clear() method on DependencyManager
> -------------------------------------------------------------
>
> Key: FELIX-3042
> URL: https://issues.apache.org/jira/browse/FELIX-3042
> Project: Felix
> Issue Type: Improvement
> Components: Dependency Manager
> Reporter: Jeremias Maerki
> Assignee: Marcel Offermans
> Priority: Minor
> Labels: patch
> Attachments: dependencymanager-clear-patch.diff
>
>
> I recently stumbled over DependencyManager and immediately found it very nice
> to work with. I have some cases where I instantiate my own DependencyManagers
> (ex. one per monitored bundle in a SynchronousBundleListener). Now that I
> found myself copy/pasting a method that removes all components from a
> DependencyManager, I modified DM to add a clear() method on
> DependencyManager. Basically I moved the code from DependencyActivatorBase. I
> hope you find this patch useful.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira