Hi, I've seen a lot about the Command
Pattern if earlier posts and understand the principal behind it.
One article I read says the applicability is
"You want to specify, queue and execute requests at different times"
"You need to support undo and change log operations"
This one
mindspring says : Encapsulate commands in objects so that you can control their selection, sequencing, queue them, undo them and otherwise manipulate them.
Whilst I can see its use in these scenarios the actual usages don't seem to me to be that common a problem as warrants the patterns prominence/popularity. So I must be missing something.
The usual text book example is switching lights/fans etc on and off with on/off command objects. Remote controls etc. I've never had to program a light switch interface though!!!
Whilst I appreciate these are for clarity could you guys give real-life examples where you've used it on server side applications i.e that isn't Swing based, or
Struts Actions etc. So I might be enlightened.
Thanks a lot
[ February 23, 2005: Message edited by: Graham VMead ]