Hi Jean-Christophe,
nice tutorial - if you like you can upgrade your tutorial to the new
ResourceResolverFactory from the Sling API - this one allows you to get
directly a resource resolver without requiring to create a session first.
So you just need
/** @scr.reference */
private ResourceResolverFactory resolverFactory;
and then you can:
ResourceResolver resolver =
resolverFactory.getAdministrativeResourceResolver(null);
Feel free to spread the word and post to the users list about your tutorial.
Thanks
Carsten
Jean-Christophe Kautzmann wrote
> Hi,
>
> FYI: I added a page to the Sling tutorials on how to get resources and
> properties in Sling [1], after validating with Felix.
> Shall I announce it on [email protected]?
>
> Cheers JC
>
> [1]
> http://sling.apache.org/site/getting-resources-and-properties-in-sling.html
>
>
--
Carsten Ziegeler
[email protected]