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.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
25
26
27
28
29
30
   
       
Today