[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] ConfigurationAdmin, declarative services and property propagation.

Cameron,

I don't think you should combine ConfigAdmin with DS in this way.
Instead of implementing ManagedService, your component should simply
retrieve the properties it needs using the
ComponentContext.getProperties() method.

As stated in section 112.6 of the Compendium, DS should use
ConfigAdmin to retrieve a Configuration object that has a PID equal to
the name of the component.

Regards
Neil

On 6/28/06, Cameron Ross <cross@xxxxxxxxxxxxxxxx> wrote:
Hi,

I have a declarative service that is also a ManagedService via the new
ConfigurationAdmin found in the equinox incubator.  The implementation
seems to work fine.  However, it is not clear to me how to implement
property propagation, as defined on page 70-432 of the OSGi Service
Platform Service Compendium (R4), for a declarative service.  The spec
recommends that properties updated through the ConfigurationAdmin
service should be propagated to the managed service registration using
ServiceRegistration.setProperties(...) .  Declarative services
encapsulate service registration, so how should properties be propagated?

Cameron.
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev



--
Neil Bartlett
Senior Technical Consultant, Integility Ltd
Tel: +44 (0) 20 7043 8328
Fax: +44 (0) 20 7043 8329

LinkedIn Profile: https://www.linkedin.com/in/neilbartlett