File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes which pattern to use  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 "which pattern to use  " Watch "which pattern to use  " New topic

which pattern to use

mohan dodderi
Ranch Hand

Joined: Aug 23, 2004
Posts: 69

i am receeiving a request object which contain decesion values and based on these decesion values i am calling appropriate objects. so my question is which pattern is suitable for this scenario.
As for my knowledge i could use COMMAND or CONTROLLER patterns.

Venkat Sadasivam
Ranch Hand

Joined: May 10, 2008
Posts: 139
You can use both controller and command pattern here.

Use controller for decision making and command to execute transaction.

“Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ”<br>
-Martin Fowler
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I agree. Here's the link:
subject: which pattern to use
It's not a secret anymore!