Command Design Pattern
Posted
by
pchajer
on Stack Overflow
See other posts from Stack Overflow
or by pchajer
Published on 2011-01-01T02:17:56Z
Indexed on
2011/01/01
2:54 UTC
Read the original article
Hit count: 155
After reading command design pattern, I have a couple of question -
Why we are creating concrete command and receiver object on client. Can't this initialization on invoker class?
I think client should create invoker and pass it's request to invoker. Invoker should take care of all the stuff.
By doing this,
- We have less dependency on client.
- The design of class diagram is totally different from actual design.
© Stack Overflow or respective owner