Download NetBeans!

20090501 Friday May 01, 2009

NetBeans API Annotations

A list of annotations introduced for NetBeans Platform 6.7, so far:

For the reasoning behind using annotations in the NetBeans Platform, listen to my interview with Jaroslav Tulach, during NetBeans Podcast 49, from December 2008.

May 01 2009, 08:52:16 AM PDT Permalink

Trackback URL: http://blogs.sun.com/geertjan/entry/netbeans_api_annotations
Comments:

Great stuff. Now we just need a series of examples with "before" and "after" to show how to use it.

For example I assume for the @ServiceProvider the idea is :

Before:
public class MyServiceProvider implements MyService

Need to create a META-INF/services/MyService file which contained MyServiceProvider

After:
@ServiceProvider
public class MyServiceProvider implements MyService

And delete the META-INF - correct ?

Posted by Bernd Ruehlicke on May 01, 2009 at 09:48 AM PDT #

Right, except you need

@ServiceProvider(service=MyService.class)

Posted by Jesse Glick on May 01, 2009 at 10:33 AM PDT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed