You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Andrei Pozolotin <an...@gmail.com> on 2011/10/07 02:55:58 UTC

scr modified() w/o config admin?

    Hello;

    Can someone please shed some light on:

    is there a way to initiate scr modified() without config admin service?

    the use case is:

    1) component is already created by osgi component factory
    http://www.slideshare.net/fmeschbe/declarative-services-dependency-injection-osgi-style

    2) now I would like to issue modified() to the component;

    ?

    Thank you,

    Andrei


Re: scr modified() w/o config admin?

Posted by Andrei Pozolotin <an...@gmail.com>.

    Felix:

    got it; thanks for clarification;

    Andrei.
      



-------- Original Message  --------
Subject: Re: scr modified() w/o config admin?
From: Felix Meschberger <fm...@adobe.com>
To: users@felix.apache.org <us...@felix.apache.org>
Date: Fri 07 Oct 2011 05:41:41 PM CDT
> Hi,
>
> No, there is no way. The modified mechanism is specifically designed to update a (non-Component Factory) component with new configuration from Configuration Admin,
>
> If you have a factory component you are free to define API in the component implementation to update with some new configuration.
>
> Regards
> Felix
>
> Am 07.10.2011 um 02:55 schrieb Andrei Pozolotin:
>
>   
>>    Hello;
>>
>>    Can someone please shed some light on:
>>
>>    is there a way to initiate scr modified() without config admin service?
>>
>>    the use case is:
>>
>>    1) component is already created by osgi component factory
>>    http://www.slideshare.net/fmeschbe/declarative-services-dependency-injection-osgi-style
>>
>>    2) now I would like to issue modified() to the component;
>>
>>    ?
>>
>>    Thank you,
>>
>>    Andrei
>>
>>     
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
>   


Re: scr modified() w/o config admin?

Posted by Felix Meschberger <fm...@adobe.com>.
Hi,

No, there is no way. The modified mechanism is specifically designed to update a (non-Component Factory) component with new configuration from Configuration Admin,

If you have a factory component you are free to define API in the component implementation to update with some new configuration.

Regards
Felix

Am 07.10.2011 um 02:55 schrieb Andrei Pozolotin:

>    Hello;
> 
>    Can someone please shed some light on:
> 
>    is there a way to initiate scr modified() without config admin service?
> 
>    the use case is:
> 
>    1) component is already created by osgi component factory
>    http://www.slideshare.net/fmeschbe/declarative-services-dependency-injection-osgi-style
> 
>    2) now I would like to issue modified() to the component;
> 
>    ?
> 
>    Thank you,
> 
>    Andrei
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org