I was wondering if the next article could be obsolete today. It was written in 2007. Describes MVC Architecture based java beans mimicking properties of the model to the controller. Also uses reflection for each property setted.
Article: http://www.oracle.com/technetwork/articles/javase/mvc-136693.html
Code: http://www.multiupload.com/PFSRSU9ELY
-
Should I follow the above article or Would be better to use an object aproach ? keeping the properties into collections within the model and so on…
-
Should I stop trying to make my own architecture for an application and give a try to Spring Framework or any other fw. ?
MVC itself can’t be obsoleted; it’s a design pattern.
The article specifically targets Swing, which has seen some changes since 2007, but nothing that would specifically negate the article, although perhaps some classes have been changed, tweaked, etc.
There may be easier ways to implement some of the functionality, but it demonstrates one way of using MVC within a Swing app within JSE 6.
Frameworks like Griffon (Groovy-based) take the abstraction level a step further, and might be more appropriate for modern desktop app development, but that’s more a matter of preference and convenience.