X

Geertjan's Blog

  • May 1, 2009

NetBeans API Annotations

Geertjan Wielenga
Product Manager
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.

Join the discussion

Comments ( 2 )
  • Bernd Ruehlicke Friday, May 1, 2009

    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 ?


  • Jesse Glick Friday, May 1, 2009

    Right, except you need

    @ServiceProvider(service=MyService.class)


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha