In the OSGi world, getting linked to extension implementations is through OSGi services. Unfortunately, for that to work, all jars should be proper, well-behaved OSGi bundles.
On Fri, Jun 20, 2014 at 1:44 AM, Kasun Gajasinghe <kas...@wso2.com> wrote: > Hi, > > There are lot of third party libraries in the carbon platform that we > extend by leveraging their extension points. In most cases, this means that > third-party library loads carbon classes via Java reflection. Refer the > following example. > > * Tomcat - Carbon uses the webapp classloader extension point of tomcat > with o.w.c.webapp.mgt.loader.CarbonWebappClassLoader > > * Hazecast - Carbon uses Hz distributed maps with > o.w.c.caching.impl.CacheEntry class where Hz itself is a OSGi bundle > > So, in a case like this what's the best way to handle this? Do we have to > wrap the original OSGi bundles just to add DynamicImport-Package header? > I'd like to know how OSGi recommends to develop libraries that provide > extension points like above. > > Thanks, > KasunG > > -- > > *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. > email: kasung AT spamfree wso2.com > linked-in: http://lk.linkedin.com/in/gajasinghe > blog: http://kasunbg.org > > > -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * <http://www.apache.org/>* *email: **az...@wso2.com* <az...@wso2.com> * cell: +94 77 3320919 blog: **http://blog.afkham.org* <http://blog.afkham.org> *twitter: **http://twitter.com/afkham_azeez* <http://twitter.com/afkham_azeez> * linked-in: **http://lk.linkedin.com/in/afkhamazeez <http://lk.linkedin.com/in/afkhamazeez>* *Lean . Enterprise . Middleware*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev