Community
Participate
Working Groups
[rfc 0134] DS - Better integration with ConfigAdmin/ManagedService According the OSGi Service Platform Service Compendium R4, 4.1, the Declarative Services will interact with the Configuration Admin Service and, if there's an update of the configuration with the same PID as the service id, the component will be deactivated and reactivated with the new configuration properties. Now, the Configuration Admin Service is able to push configuration changes directly to the component using the Managed Service interface. This behavior, however, cannot be combined with the Declarative Services, and on configuration changes, the component will be de- and reactivated regardless. I would need the SCR to detect the fact that a ManagedService interface is provided for the PID corresponding to the service id (although that should probably be implicit for the sake of simplicity, if it isn't defined), and NOT deactivate the component in this case, but let it handle the update at run-time. It's not 100% clear to me if this requires changes to the configuration admin service, but I suppose that the SCR could probably insert itself as a middleware, not exposing the service from the component directly, and just forwarding requests whenever the component is active. ------- Comment #1 From BJ Hargrave 2008-09-17 16:45:02 UTC [reply] ------- CPEG mtg: We add a modified attribute. If specified component will be called at that method before the service properties are updated. modified method will take same args as activate.
Stoyan, will Equinox DS support this new attribute?
Looks like this isn't necessary anymore.
I have not implemented this feature yet. It is not added to the DS spec but I thought it would be added soon. BJ, could you tell whether this feature will be included in DS spec for OSGi R4.2? (In reply to comment #2) > Looks like this isn't necessary anymore. Why is it not necessary?
The DS spec for 4.2 has been updated to include a modified attribute. See bug 272599 comment 0 for the specification details.
*** Bug 272600 has been marked as a duplicate of this bug. ***
Created attachment 132391 [details] org.eclipse.pde.ds.patch Adds a modified attribute on the component element.
done. > 20090420