We already do so in Pax-Web for http service [1].

regards, Achim

[1] -
https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-runtime/pom.xml#L91-L93


2016-09-14 15:56 GMT+02:00 BJ Hargrave <hargr...@us.ibm.com>:

> 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
>
>
>
> ----- 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
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to