So this is like DS (an extender) registering Servlet services on behalf of a bundle using DS. Then of course the extender bundle does not care about the servlet package but also the extender bundle is not using ServiceTrackers to track the Servlet services. That is done by the Http Whiteboard impl bundle which does care about the servlet package and its version.
--
BJ Hargrave
Senior Technical Staff Member, IBM office: +1 386 848 1781
OSGi Fellow and CTO of the OSGi Alliance mobile: +1 386 848 3788
[email protected]
BJ Hargrave
Senior Technical Staff Member, IBM office: +1 386 848 1781
OSGi Fellow and CTO of the OSGi Alliance mobile: +1 386 848 3788
[email protected]
----- Original message -----
From: Raymond Auge <[email protected]>
Sent by: [email protected]
To: OSGi Developer Mail List <[email protected]>
Cc:
Subject: Re: [osgi-dev] whiteboard pattern & extenders
Date: Wed, Jun 17, 2015 2:23 PM
But an extender who registers services to a whiteboard impl on behalf of extendee will result in those services not being visible to the whiteboard if the extendee does not import the packages used by the services?On Wed, Jun 17, 2015 at 2:16 PM, BJ Hargrave <[email protected]> wrote:Well whiteboard and extenders are different.Whiteboard should not use true since it cares about the specific API package version.Extenders should use BundleTrackers rather than ServiceTrackers since they are not using whiteboard services.--
BJ Hargrave
Senior Technical Staff Member, IBM office: +1 386 848 1781
OSGi Fellow and CTO of the OSGi Alliance mobile: +1 386 848 3788
[email protected]----- Original message -----
From: Raymond Auge <[email protected]>
Sent by: [email protected]
To: OSGi Developer Mail List <[email protected]>
Cc:
Subject: [osgi-dev] whiteboard pattern & extenders
Date: Wed, Jun 17, 2015 2:12 PM
When implementing a whiteboard pattern should we always open trackers using the trackAllServices = true ? via:It would seem that this is the only way that we can support extenders where the extendee has no knowledge of the APIs in question, correct?
ServiceTracker.open(true);
--Raymond Augé (@rotty3000) Board Member & EEG Co-Chair, OSGi Alliance (@OSGiAlliance)_______________________________________________
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é (@rotty3000) Board Member & EEG Co-Chair, OSGi Alliance (@OSGiAlliance)_______________________________________________
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
