You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Rodrigo Madera <ro...@gmail.com> on 2007/09/28 16:26:51 UTC
SCR + Configuration Admin Service = possible?
Hello,
I'm seeing that CAS requires a configurable class to register itself on
construction with the BundleContext.
So the question is, can CAS and maven-scr-plugin get along?
Thanks,
Rodrigo
Re: SCR + Configuration Admin Service = possible?
Posted by Rodrigo Madera <ro...@gmail.com>.
Thanks for the help.
I wasn't sure if SCR could handle that.
Thanks,
Rodrigo
On 9/28/07, Felix Meschberger <fm...@gmail.com> wrote:
>
> I am not sure, whether I understand your request. In fact in Apache
> Sling we make heavy use of Declarative Services components which are
> configured with the Configuration Admin Service. When using Declarative
> Services, it is the task of the Service Component Runtime (another term
> for the Declarative Services implementation) to get configuration from
> the Configuration Admin and hand it over to the component. The declared
> components just get the configuration (properties) as part of the
> ComponentContext in the activate method.
>
> Works like a charm :-) And very useful.
>
> Am Freitag, den 28.09.2007, 11:26 -0300 schrieb Rodrigo Madera:
> > I'm seeing that CAS requires a configurable class to register itself on
> > construction with the BundleContext.
>
> In Declarative Services, this is not the task of the component but of
> the SCR.
>
> > So the question is, can CAS and maven-scr-plugin get along?
>
> Very good in fact
>
> Regards
> Felix
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
Re: SCR + Configuration Admin Service = possible?
Posted by Felix Meschberger <fm...@gmail.com>.
I am not sure, whether I understand your request. In fact in Apache
Sling we make heavy use of Declarative Services components which are
configured with the Configuration Admin Service. When using Declarative
Services, it is the task of the Service Component Runtime (another term
for the Declarative Services implementation) to get configuration from
the Configuration Admin and hand it over to the component. The declared
components just get the configuration (properties) as part of the
ComponentContext in the activate method.
Works like a charm :-) And very useful.
Am Freitag, den 28.09.2007, 11:26 -0300 schrieb Rodrigo Madera:
> I'm seeing that CAS requires a configurable class to register itself on
> construction with the BundleContext.
In Declarative Services, this is not the task of the component but of
the SCR.
> So the question is, can CAS and maven-scr-plugin get along?
Very good in fact
Regards
Felix
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org