File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Command pattern implimentation in java

 
eddy kh
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A person is working in Stocks Trading business. He wants to automate his business and has asked you to develop a Stock Trade System for him.
Your client creates some orders for buying and selling stocks. Then the orders are sent to the agent. The agent takes the orders and places them to the Stock Trade system. The agent keeps an internal queue with the order to be placed. Let's assume that the Stock Trade system is closed each Monday, but the agent accepts orders, and queue them to be processed later on.


Can anyone help how to implement it through the command pattern in java?
 
Narender Reddy Soma
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont see a reason why Command pattern only has to be implemented in this scenario. Any specific reason for choosing Command pattern there?
 
Junilu Lacar
Bartender
Pie
Posts: 6529
21
Java Linux Mac Scala Spring
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
eddy kh wrote:Can anyone help how to implement it through the command pattern in java?

Welcome to the Ranch!

You will have better luck if you first ShowSomeEffort (←click) then ask specific questions about any difficulty you might be having. Good luck!
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic