Sunday February 15, 2009
The Future: OSGi Bundle Template in NetBeans IDE?
Based on Extending GlassFish v3 via the NetBeans Platform's OSGi Support, I imagine a future where the New Project dialog would have this content:
There would be a very long list of different kinds of OSGi bundles there, where currently I only have a basic OSGi bundle. The basic OSGi bundle template creates this source structure in the IDE:
In other words, felix.jar is on the bundle's classpath, so that one can start coding against it right away. A simple BundleActivator is included to get you started. The manifest holds keys/values that are relevant to OSGi, instead of the typical NetBeans module keys/values. For example, the BundleActivator is registered there by the template. Then, when you build the bundle (right-click the project and choose Build), the JAR is created (visible in the Files window), which is then the OSGi bundle that can then be dropped into any application that runs on OSGi. Such as GlassFish.
Feb 15 2009, 01:35:42 AM PST Permalink


