You cannot see trackers in the registry since the direction is wrong. 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 -- BJ Hargrave Senior Technical Staff Member, IBM OSGi Fellow and CTO of the OSGi Alliance [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é (@rotty3000) Senior Software Architect Liferay, Inc. (@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
