|
no.... to be honest, I haven't used the command
pattern much, and not recently, so someone might need to correct me on details,
but.....
you have a CommandExecutor that has a
method
void execute(Command cmd) throws
CommandException;
or similar. then, when you want something
done, you would do something like:
// to view cart contents
ViewCartContentsCommand cmd =
CommandFactory.createViewCartContentsCommand();
CommandExecutor.getInstance().execute(cmd); //
note that there are difference approaches to doing this line
... = cmd.getCartContents();
does that help?
cheers
dim
|
Title: Message
- Re: Stateful Session Beans GlennODickson
- Re: Stateful Session Beans Dmitri Colebatch
- Re: Stateful Session Beans GlennODickson
- Re: Stateful Session Bean... Dmitri Colebatch
- Re: Stateful Session Beans Juan Pablo Lorandi
- Re: Stateful Session Beans GlennODickson
- Re: Stateful Session Beans Juan Pablo Lorandi
- Re: Stateful Session Beans Ashwani Kalra
- Re: Stateful Session Beans Dmitri Colebatch
- Re: Stateful Session Bean... Ashwani Kalra
- Re: Stateful Session ... Dmitri Colebatch
- Re: Stateful Session Beans Kesavanarayanan, Ramesh (Cognizant)
- Re: Stateful Session Beans GlennODickson
- Re: Stateful Session Beans Dmitri Colebatch
- Re: Stateful Session Beans GlennODickson
- Re: Stateful Session Beans GlennODickson
- EJB Strict Compilation Koneti Kavi Kumar
- Re: EJB Strict Compil... Ashwani Kalra
- Re: EJB Strict Compil... Binil Thomas
- Re: Stateful Session Beans GlennODickson
