Don't know about "best", but I always put it in the event class itself. I like that is results in the call to AddCommand having both the event class and the command class explicitly referenced as shown below.

addCommand(GetSomeDataEvent.GET_SOME_DATA_EVENT, GetSomeDataCommand);

hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



Fernando Ghisi wrote:

Where is the best place to put the static variable that stores the
name of an event, in the class of this event (extends CairngormEvent)
or in the class that extends FrontController and consumes this event?
There are many examples with both ways...

--
Fernando Ghisi

Reply via email to