I have a question regarding multicore vs standard.
On the gwt port, it seems that there is a difference in the way to add subCommands in a MacroCommand.
In standard version, MacroCommand.addSubCommand expects a reference to the command.class to be instanciated by the controller upon notified, as stated by the best practiced documentation.
protected void addSubCommand(Class<? extends ICommand> commandClassRef) { this.subCommands.add(commandClassRef); }
With the multicore version, MacroCommand.addSubCommand expects an instanciated ICommand object. So, when should the command be instanciated then ?
protected void addSubCommand( ICommand commandClassRef ) { this.subCommands.addElement( commandClassRef ); }
Aside from the fact that the documentation refers to singletons only, are there other aspects of the multicore version that are not covered in the documentation ?
Thanks
Bruno
|