You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Paul Wilson <pa...@gmail.com> on 2019/11/05 23:56:35 UTC

Re: Plugging an Observer with access to NodeStore

Hi Vikas,

Thanks for the reply. I eventually had more success by copying and
reworking the standalone example in 'oak-examples'. I'm still unsure where
my attempts failed when trying to emulate the pojosr tests.

Regards,
Paul

On Thu, 31 Oct 2019 at 19:06, Vikas Saurabh <vi...@gmail.com> wrote:

> Hi Paul,
>
> On Tue, 29 Oct, 2019, 18:38 Paul Wilson, <pa...@gmail.com> wrote:
>
> > ....
>
> I believe the best way to have my Observer access the NodeStore is
> > via @Reference injection from the OSGi container. I have no plans to use
> > OSGi however ....
>
>
> Admittedly, I'm not the best person to answer this... But I wonder if you
> can take cue from LucenePropertyIndexTest which sets up repository sans
> osgi. While creating Oak instance, you can do .with(Observer) to inject
> your own observer.
>
> --Vikas
> (sent from mobile)
>