RFR: demo to show module can be loaded by both Jigsaw and OSGi
Shi Jun Zhang
zhangshj at linux.vnet.ibm.com
Tue Feb 28 23:53:51 PST 2012
On 2/28/2012 6:44 PM, David Bosschaert wrote:
> 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
> Best regards,
> On 28 February 2012 09:18, Shi Jun Zhang<zhangshj at linux.vnet.ibm.com> wrote:
>> 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
>> Shi Jun Zhang
I totally agree that our final goal is to have a single metadata file
which can be used by Jigsaw and OSGi. But this is just a simple demo to
show the possibility that a module can be used by both Jigsaw and OSGi
without modifying any Jigsaw or OSGi implementation.
Shi Jun Zhang
More information about the penrose-dev