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 - Replace layer.xml with class level annotations
Summary: Replace layer.xml with class level annotations
Status: RESOLVED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker with 1 vote (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-09 21:32 UTC by jfurmankiewicz
Modified: 2010-05-03 13:29 UTC (History)
5 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.