Monday October 29, 2007
Groovy on the NetBeans Platform!
A first experiment—I created a module suite, added a library wrapper containing the Groovy JAR, another library wrapper containing the JAR of the Groovy-Java-mixed application I created earlier, and then a new module with a TopComponent that calls the Groovy class in the aforementioned Groovy-Java-mixed application. This is exactly how one works with web service clients on the NetBeans Platform (i.e., create the JAX-WS client stubs in a standard Java application and then wrap that JAR in a library wrapper module which is then attached to a module suite that contains another module which calls into the JAX-WS library wrapper). In this case, the ported application has the following result:
The most perfect way of working with Groovy on the NetBeans Platform would be to abandon Java source files altogether and to write purely in Groovy files. (Since Groovy is a superset of Java, one could then still continue writing Java, but one would then have the option of writing in Groovy as well.) I tried this, but haven't succeeded yet. Related to this, here's my contentious statement of the week (and it is only Monday): I don't think NetBeans IDE needs a Groovy Editor at all. It "simply" needs its Java Editor to support Groovy...
Oct 29 2007, 05:40:39 AM PDT Permalink


