This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 89068

Summary: Replace layer.xml with class level annotations
Product: platform Reporter: jfurmankiewicz <jfurmankiewicz>
Component: -- Other --Assignee: issues@platform <issues>
Status: RESOLVED INVALID    
Severity: blocker CC: anebuzelsky, hmichel, jglick, mmirilovic, puce
Priority: P3    
Version: 5.x   
Hardware: All   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description jfurmankiewicz 2006-11-09 21:32:28 UTC
Maintaining layer.xml is
a) error prone
b) a pain
c) XML is more trouble than its worth (IMHO) in most cases

It would be great it we could replace all of this using EJB 3.0-style
annotations, e.g.:

@File("/Actions/Edit")
@ShadowFile("Editors/text/x-jsp/Popup")
public class MyAction extends CookieAction {

} 

This would make module development much easier and faster. And it would
automatically handle any refactoring you do as well (i.e. no need to synchronize
refactored classes with their references in layer.xml).
Comment 1 puce 2008-10-25 12:50:45 UTC
Sounds interesting. Any opinions from the experts?
Comment 2 Antonin Nebuzelsky 2010-05-03 12:00:44 UTC
As a general enhancement this is probably a duplicate of issue 150804.

However getting rid of layer.xml completely is not achieved.

Reassigning to jglick.
Comment 3 Jesse Glick 2010-05-03 13:29:46 UTC
Annotations were introduced starting in 6.7 for particular purposes.