felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: Declarative Services and service.pid
Date Wed, 05 Sep 2007 14:31:00 GMT
Felix Meschberger wrote:
> Am Mittwoch, den 05.09.2007, 16:05 +0200 schrieb Carsten Ziegeler:
>> I haven't looked briefly at the spec to be honest, but what I find
>> strange is that the component has a pid when viewed in the configuration
>> admin (and the metatype.xml contains an entry for this). It seems (as
>> you write in the jira issue) that this pid is only available in scr if
>> the configuration has been changed once (update() is called). So from a
>> client perspective (someone using this component), it depends if it gets
>> the PID based on the fact if someone has updated the configuration or
>> not. This looks a little bit strange to me.
> 
> I agree. But the Declarative Services spec only mentions the PID when
> talking about retrieving configuration from the Configuration Admin.
> Therefore the SCR does not set that property automatically - currently.
> 
Which is fine, I think - because if the configuration admin would
deliver the PID regardless if update() has been called, SCR would get
the PID always and does not need any additional logic.

Carsten

-- 
Carsten Ziegeler
cziegeler@apache.org

Mime
View raw message