Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

| * |

  Show Posts
Pages: [1]
1  PureMVC Manifold / Standard Version / Single Command Instance on: December 09, 2010, 08:32:44
Wondering if the recent changes for GWT are going to work for all situations, specifically:

//No reflexion in GWT
//ICommand commandInstance = (ICommand) commandClassRef.newInstance();
ICommand commandInstance = (ICommand) this.commandMap.get( note.getName() );

My understanding is that a new instance of the class reference ensures any async or holding commands can be executed 'concurrently'. With the above change firing an async command twice would give unpredictable results. Also this is not a backwards compatible with the core api. Given that this is GWT specific wouldn't it be wiser to branch or expand the functionality rather than re-writing it?

Cheers,

Ian
Pages: [1]