[osgi-dev] track trackers?

2014-09-30 Thread Raymond Auge
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
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] track trackers?

2014-09-30 Thread BJ Hargrave
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
hargr...@us.ibm.com

office: +1 386 848 1781
mobile: +1 386 848 3788




From:   Raymond Auge raymond.a...@liferay.com
To: OSGi Developer Mail List osgi-dev@mail.osgi.org
Date:   2014/09/30 15:45
Subject:[osgi-dev] track trackers?
Sent by:osgi-dev-boun...@mail.osgi.org



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
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] track trackers?

2014-09-30 Thread Raymond Auge
On Tue, Sep 30, 2014 at 4:07 PM, BJ Hargrave hargr...@us.ibm.com 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/
 *hargr...@us.ibm.com* hargr...@us.ibm.com

 office: +1 386 848 1781
 mobile: +1 386 848 3788





 From:Raymond Auge raymond.a...@liferay.com
 To:OSGi Developer Mail List osgi-dev@mail.osgi.org
 Date:2014/09/30 15:45
 Subject:[osgi-dev] track trackers?
 Sent by:osgi-dev-boun...@mail.osgi.org
 --



 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
 osgi-dev@mail.osgi.org
 https://mail.osgi.org/mailman/listinfo/osgi-dev


 ___
 OSGi Developer Mail List
 osgi-dev@mail.osgi.org
 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
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev