aspose file tools*
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


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "which pattern to use  " Watch "which pattern to use  " New topic
Author

which pattern to use

mohan dodderi
Ranch Hand

Joined: Aug 23, 2004
Posts: 69
Hi

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.


regards
Mohan
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
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
http://faq.javaranch.com/java/WhenToApplyDesignPatterns


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: http://aspose.com/file-tools
 
subject: which pattern to use