Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which pattern to use

 
mohan dodderi
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use both controller and command pattern here.

Use controller for decision making and command to execute transaction.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://faq.javaranch.com/java/WhenToApplyDesignPatterns
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic