[
https://issues.apache.org/jira/browse/FELIX-3334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227521#comment-13227521
]
Marcel Offermans commented on FELIX-3334:
-----------------------------------------
Can't speak for everybody, but I actually like the fact that you can plug-in a
different store implementation. I don't think it structurally causes problems
(other than the fact that it slightly complicates the design and leaves us with
questions like "what should happen if the backing store changes or goes away).
The concurrency issues are things we should keep working on. In any case we're
actively using prefs in http://amdatu.org/ so we'll keep contributing patches
whenever we run into something.
> PreferencesManager can throw NPE after being stopped.
> -----------------------------------------------------
>
> Key: FELIX-3334
> URL: https://issues.apache.org/jira/browse/FELIX-3334
> Project: Felix
> Issue Type: Bug
> Components: Preferences Service
> Affects Versions: prefs-1.0.4
> Reporter: J.W. Janssen
> Assignee: Carsten Ziegeler
> Labels: patch
> Fix For: prefs-1.0.6
>
> Attachments: felix-prefs-3334-2.patch, quickfix-new.patch
>
>
> PreferencesManager#bundleChanged tries to intercept bundles that are
> uninstalled. However, if the PreferencesManager itself is stopped, it does
> not unregister itself as bundle listener, causing possible NPEs when other
> bundles depending on the preferences service are stopped later on, for
> example during a shutdown.
> I've got a patch available, will attach it to this issue to be applied.
--
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