Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Command pattern.

20 views
Skip to first unread message

softwareEngineer

unread,
May 15, 2012, 11:12:57 AM5/15/12
to
Hi all,
my topic is relate on design. Would be great any your feedback/suggestion.
I have two component, one (let´s call it A) manage the request (command) from external systems and another (let´s call it B) manage its own command.

Once A receive one command calls one method of class B.
Now I´d like to expose only one method from B (ProcessCommand) which accept a abstract class (ICommand). So B have to expose one method ProcessCommand, ICommand and all ConcreteCommand (derived by ICommand) that it manage.

What do you think ? there is a better way to do it ?

thanks.
Robbie.
0 new messages