On Tue, Sep 30, 2014 at 4:07 PM, BJ Hargrave <[email protected]> wrote:
>
> ServiceTrackers are a layer above the registry and use ServiceListeners
>  to follow services. So you could use ListenerHooks [1] to see what
> services bundles are listening for.
>
> Also FYI, UnfilteredServiceListener [2] was added in Core R5 to allow
> certain users to advertise their service interest via ListenerHooks while
> remaining unfiltered.
>
> [1]
> http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/hooks/service/ListenerHook.html
> [2]
> http://www.osgi.org/javadoc/r5/core/org/osgi/framework/UnfilteredServiceListener.html
> --


Ok BJ this is precisely what I was looking for... how nice it is to find
such cool nuggets.

Thank you

- Ray


>   *BJ Hargrave*
> Senior Technical Staff Member, IBM
> OSGi Fellow and CTO of the *OSGi Alliance* <http://www.osgi.org/>
> *[email protected]* <[email protected]>
>
> office: +1 386 848 1781
> mobile: +1 386 848 3788
>
>
>
>
>
> From:        Raymond Auge <[email protected]>
> To:        OSGi Developer Mail List <[email protected]>
> Date:        2014/09/30 15:45
> Subject:        [osgi-dev] track trackers?
> Sent by:        [email protected]
> ------------------------------
>
>
>
> I believe the answer is no... but
>
> Is it possible to list out all the trackers in the registry?
>
> Particularly, given a type, is it possible to find who might be interested
> in it?
>
> I'm thinking along the lines of a DTO which might report this info.
>
> The goal is to observe as a developer the possible interested parties for
> a given type.
>
> --
> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
>  (@rotty3000)
> Senior Software Architect
> *Liferay, Inc.* <http://www.liferay.com/> (@Liferay)
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>



-- 
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
 (@rotty3000)
Senior Software Architect
*Liferay, Inc.* <http://www.liferay.com> (@Liferay)
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to