On Fri, Jul 5, 2013 at 10:47 AM, Ian Boston <[email protected]> wrote:
> Hi Dishara,
>
> It does,
>
> All you need to do, in a OSGI Component annotated with @Component is add a
> private property and annotate it with @Reference. Eg
>
> @Reference
> private ResourceResolver resourceResolver;
>
> When the component is activated, the ResourceResolver implementation will
> in set.
>
Do we already have a such getter to re use ? In that case I would not need
to define a resolver variable inside my module.
>
> hTH
> Ian
>
> On Friday, July 5, 2013, Dishara Wijewardana wrote:
>
> > Hi Ian,
> > Does Sling has a Resource Resolver for Cassandra already ? I am in the
> > process of re factoring the code based on code reviews.
> >
> > public class CassandraResourceResolver implements ResourceResolver {
> > You wont need this implementation. ResourceResolver is implemented for
> > you, all you need to implement is the resource provider.
> >
> > What is the name of the resource resolver we already have ? So that I can
> > use it directly.
> >
> >
> > --
> > Thanks
> > /Dishara
> >
>
--
Thanks
/Dishara