Community
Participate
Working Groups
In bug 202278, we removed the cm event adapter. The cm event adapter belongs within the actual CM implementation.
I'll take it.
Created attachment 82712 [details] org.eclipse.equinox.cm.patch Adds an event adapter for configuration admin.
Created attachment 82713 [details] mylyn/context/zip
Tom to review.
At first glance the interaction between the tracker and configuration event generation in ConfigurationEventAdapter doesn't look thread-safe. This was probably also the case when the adapter lived in EventAdmin. ;) We should also consider making the event admin import optional.
Created attachment 82759 [details] patch Here is a patch that makes the event package optional. I also make the access to the eventAdminTracker thread-safe. Is this what you were referring to Simon?
I guess that works ;)
Pretty much. Thanks guys. I also wanted to make sure the event adapter was registered prior to the Config Admin service. Since this is still in the incubator and I'm now more or less happy with the look of things I've checked a slightly tweaked version of this in. I've also added in some new tests to validate and (for now) put them in org.eclipse.equinox.cm.test. Tom or Chris, could you take a quick look and then I think we can mark this FIXED.
Your changes are better. It is better to construct the ServiceTracker in the constructor. Marking as fixed.
clearing out old review request.