You should Export-Package them from your bundle. You should also Import-Package them as well to allow for substitution. If you build your bundle with Bnd, this should be the default.
--
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
hargr...@us.ibm.com
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
hargr...@us.ibm.com
----- Original message -----
From: Marc Schlegel <maschle...@gmail.com>
Sent by: osgi-dev-boun...@mail.osgi.org
To: osgi-dev@mail.osgi.org
Cc:
Subject: [osgi-dev] How to implement classes based on osgi.cmpn
Date: Wed, Sep 14, 2016 9:48 AM
Hello everyone
I am planning to add the HttpServiceRuntime service to Pax-Web (Http-Service
implementation).
Section 140.9 of the compendium specification defines several DTOs which should
be implemented.
Now I've seen that all necessary classes are already available in the compile-
artifact osgi.cmpn-6.0.0.
Since this artifact cannot be used at runtime, I am struggling how to handle
this: should I use the Classes from the package and include them in my bundle
(like static linking)?
Conditional-Package: org.osgi.service.http.runtime.dto
Whats the best-practise in using classes provided by osgi.cmpn?
Thanks
Marc
_______________________________________________
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