I'm looking to use the command pattern in a distributed client/server environment. Essentially, the receivers 'execute' methods will need to take various parameters, however I read that each command class should have a uniform 'execute' method that should reveal nothing about the underlying functionality of the receivers.
My question is, how can I pass invocation parameters from switches into the different receivers via the command classes? Has anyone got a simple Java example? I can't seem to find any
Thanks indeed for your help.