RFR: demo to show module can be loaded by both Jigsaw and OSGi

David Bosschaert david.bosschaert at gmail.com
Tue Feb 28 02:44:37 PST 2012


Hi Shi Jun,

It's a nice start but one thing that I think needs to be improved is
that the module metadata is completely separated for OSGi and Jigsaw.
There is the module-info.java for Jigsaw while the OSGi module
metadata is totally isolated in the MANIFEST.MF file.
I think that we ultimately want to come to a single module metadata
file that is extensible and can be used both by Jigsaw as well as
OSGi...

Best regards,

David

On 28 February 2012 09:18, Shi Jun Zhang <zhangshj at linux.vnet.ibm.com> wrote:
> Hi,
>
> I want to contribute my simple demo which can demonstrate the capability
> that a module/bundle can be loaded and ran by both Jigsaw and OSGi. When a
> module is installed into a library, all the class files will be packaged
> into a jar file named classes. Adding OSGi metadata into this jar file can
> make it as an OSGi bundle.
>
> The main part of the src are from java2d demo. I repackage them into 3
> modules and add module-info.java/MANIFEST.MF for these modules. There is a
> README file in root folder tells how to build and run.
>
> Here is the webrev link
> http://cr.openjdk.java.net/~zhangshj/penrose_java2d_demo/webrev.00/
>
> --
> Regards,
>
> Shi Jun Zhang
>
>


More information about the penrose-dev mailing list