Monday April 21, 2008
A Picture That Speaks 1000 Words

Apr 21 2008, 08:04:12 AM PDT Permalink
Indeed, this is REALLY cool. This could have been such a nice April Fool's as well (not as good as NetBeans being built on top of SWT), but to say that NetBeans will be built on top of Spring :-)
Nice work !!
Posted by Alex Kotchnev on April 21, 2008 at 10:37 AM PDT #
:-) To prove it is no joke, look here, Alex, and not e that since it is in 'contrib', you can check it out yourself, just as I did (the tests are pretty cool):
http://hg.netbeans.org/main/contrib/file/f8f3985c0b2a/spring.lookup/
Posted by Geertjan on April 21, 2008 at 11:19 AM PDT #
Geerjan, would you mind elaborating this picture into few more words though? I am really curious about some use cases. What can I yield by converting the context into Lookup (or vice versa)?
Posted by Lukas Vlcek on April 21, 2008 at 12:30 PM PDT #
Lukas, if you're comfortable with Spring, you'll be able to use Spring to connect your modules together, instead of the NetBeans Lookup API. Similarly, if you have a Spring config file, you'll be able to convert it to a NetBeans Lookup so that you can access your Spring beans via the NetBeans Lookup API.
Posted by Geertjan on April 21, 2008 at 12:55 PM PDT #
I am still investigating what shall be possible, what are the useful usecases for this API. However with a method like this you can create your own Node or TopComponent that is code via Spring and then expose all its interfaces to rest of NetBeans via their getLookup() method. However that is just an idea, we need more brainstorming.
Anyone who shows nice demo code is more than welcomed!
Posted by Jaroslav Tulach on April 22, 2008 at 12:29 AM PDT #


