Hi Bertrand,

I found maven-scr-plugin annotation very interesting and easy...

Now I'm trying figuring out how I could inject properties from a config file
on the service using DS...

thanks

Cristiano

2011/4/26 Bertrand Delacretaz <[email protected]>

> Hi,
>
> On Tue, Apr 26, 2011 at 12:03 AM, Cristiano Gavião <[email protected]>
> wrote:
> > ....I would like to use Configuration Admin Service with Declared
> Service. But I
> > couldn't find yet a updated tutorial with a good example....
>
> If your goal is to create Declarative Services that have configuration
> parameters, the maven-scr-plugin [1] makes things very easy.
>
> See [2] for an example which uses a number of @Property annotations
> for configurable parameters.
>
> -Bertrand
>
> [1] http://felix.apache.org/site/apache-felix-maven-scr-plugin.html
>
> [2]
> http://svn.apache.org/repos/asf/sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/SlingMainServlet.java
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
"Tudo vale a pena se a alma não é pequena..."

Reply via email to