A Generic MVC Model in Java

Jasper 4
0 0
Read Time:37 Second

An interesting article about reducing the amount of code needed to implement a certain objectmodel, using JDK1.5’s generics.

“Model-View-Controller (MVC) is a widely used design pattern, especially popular in graphical user interface (GUI) programming. JDK 1.5 introduces parameterized types, or generics. Combining the two allows for a generic implementation of the MVC design pattern, freeing the programmer from writing code that handles the registration and notification of listeners, as well as from writing getter and setter methods for the properties of models. This article shows how this can be accomplished.”

I’m not sure if i find the code better readable, but that may also be because i’m not yet that accustomed to read code that uses generics..

Read More..

About Post Author

Jasper

Consultant at AMIS
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

4 thoughts on “A Generic MVC Model in Java

Comments are closed.

Next Post

Database access using Eclipse

Want to see what’s residing in your database from Eclipse? Get the QuantumDB plug-in, and create a DB connection using a driver suitable for your database. From then easy browsing of tables/views and their contents is available to you! Related posts: Hibernate + Middlegen Roundtrip Development applied Tiger (Java 5.0) […]
%d bloggers like this: