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 191705 - Introducing JSR330 and JSR 299 into NetBeans Platform
Summary: Introducing JSR330 and JSR 299 into NetBeans Platform
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 6.x
Hardware: PC Other
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-07 14:52 UTC by hantsy
Modified: 2010-11-22 10:01 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
code sample for this... (33.44 KB, image/png)
2010-11-10 17:51 UTC, hantsy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hantsy 2010-11-07 14:52:21 UTC
jsr 330 and jsr 299 is good...Eclipse e4 has projects to do this.

Why NetBeans not?

I think we need the @Inject and @Resource related Annotation at the begining step to simplify the development...

Such as:
@Logger Log log
a specified Inject to inject a logger in class, some like the seam Log.


@Resource 
ImageIcon edit;
 
To inject a binary image resource in "edit" from moudle resource folder( eg "METAINF/resoures/", let NetBeans find related file and file mimetype automatically, like in the GNOME desktop file, we need not specify the extension of the icon image) and platform resource folder(if can not found in module resource),it should apply the Configuration on Conservation principal,and It also can accpet a value to specify the location througth URL, such as @Resource("nbresource:/res/edit.png")...


@Inject
Messages messgaes

The ResourceBundle files are also need to apply the Inject or Resource(specify the file) annotation, and add a simple way to use it, like the seam FacesMessages class.


@Inject
@Current
Project project

To get a current project instance...thus can remove tedious Lookup codes.

....and etc.

This is just of my dream.
If NetBeans has some plan like this, I think it needs a further discussion.
Comment 1 Jaroslav Tulach 2010-11-10 13:43:05 UTC
I was thinking about using the JSR 330 myself. The question however is: how? It definitely needs more discussion. If you have some links about the way e4 wants to use it, please share them.

However I don't believe issuezilla and P3 bug is appropriate for a discussion like that. Closing the bug as invalid. Not as "invalid" idea, but invalid in "not a bug" meaning.
Comment 2 hantsy 2010-11-10 17:24:56 UTC
it is an new requirement...
Comment 3 hantsy 2010-11-10 17:33:55 UTC
There are much resources about Eclipse and JSR 330...E4 introduces the new CSS/XWT/DI(JSR 330)...

Here I list some of them...

http://www.slideshare.net/LarsVogel/eclipse-e4-tutorial-eclipsecon-2010-3587897

http://www.slideshare.net/LarsVogel/eclipse-e4-overview

http://eclipse.dzone.com/news/eclipse-4-goes-extra-mile

U can use google to get more...
Comment 4 hantsy 2010-11-10 17:38:43 UTC
I am not the guru of NetBeans or JSR330...so I think NetBeans should make such a plan of this topic, and create a wiki page to discuss with other NetBeans experts.
Comment 5 hantsy 2010-11-10 17:40:46 UTC
I am sorry , I am a none English guy, maybe my expression is not clear as u expected.
Comment 6 hantsy 2010-11-10 17:51:15 UTC
Created attachment 102891 [details]
code sample for this...
Comment 7 Jaroslav Tulach 2010-11-19 06:35:34 UTC
I am trying to get some ideas on nbdev@ (see http://netbeans.org/projects/www/lists/nbdev/archive/2010-11/message/42), but so far no luck. I guess this issue ends up won'tfix.
Comment 8 Jaroslav Tulach 2010-11-19 06:58:38 UTC
More info: http://hwellmann.blogspot.com/2010/11/cdi-major-risk-factor-in-java-ee-6.html - a.k.a weld is not an option now (in spite of excuses in http://in.relation.to/Bloggers/WeldsPerformance).
Comment 9 Jaroslav Tulach 2010-11-22 10:01:35 UTC
I have nothing against JSR-330, but current ideas are so vague that I can't implement anything. So this issue is either invalid (too vague) or won'fix (nobody to work on it). Of course, if you can donate patch to make your ideas more concrete, feel free to reopen.