File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes OO, Patterns, UML and Refactoring and the fly likes What is MVC, a pattern or architecture? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "What is MVC, a pattern or architecture? " Watch "What is MVC, a pattern or architecture? " New topic
Author

What is MVC, a pattern or architecture?

Atila Correia
Greenhorn

Joined: Jul 21, 2003
Posts: 7
Hi, why the authors put MVC as design pattern? Why there is no term as architecture pattern?
SCJP 1.4


+++++++++++++++++++++++++++++<br />SCJP, SCWCD, SCJA<br />MCP C# <br />Flash Animations, Action Script and Game Developer<br />Blender 3D Modeller<br /><a href="http://atilacorreia.blogspot.com/" target="_blank" rel="nofollow">http://atilacorreia.blogspot.com/</a><br /><a href="http://www.virtuestudio.com" target="_blank" rel="nofollow">www.virtuestudio.com</a><br />+++++++++++++++++++++++++++++
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

http://www.coderanch.com/t/312322/EJB-JEE/java/Architectural-patterns


Groovy
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

The term MVC (Model-View-Controller) gets bandied about on multiple levels. In classic SmallTalk programming, all three roles operate in the same program space to define update/event operations among a Model (the in-memory collection of data), a View (the presentation of data peculiar to the interests of one user), and a Controller (the exposed component that allow a user to request modifications to the model or the view perspective).
The idea behind this pattern is to separate the issues of modelling, viewing and controlling underlying data so that only the agreement between these roles (their public interfaces) remains a constant, leaving their implementation as a detail the systems programmer can vary as needed. The information changes between these roles are often described as updates, or events in Swing/AWT/JavaBeans parlance.
To me the idea of an "MVC Architecture" is just a way to leverage the knowledge of this pattern as a J2EE development best practice. The term, in my opinion, doesn't have much to do with establishing a helpful, well-documented, resuable pattern of class relationships. I see the primary intent of this term as a means to persuade developers that if they know MVC from a previous context, they can apply that understanding to J2EE development. The reuse is in this case conceptual.
To put more rubber on the road, we see recommendations of Model 1, Model 1-1/2 and Model 2 architectures in Sun's best practices guides, all of which are variations on the MVC Architecture concept.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

http://www.coderanch.com/t/97968/patterns/MVC-architecture-or-pattern
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is MVC, a pattern or architecture?