|
Regarding renaming DialogListener, I agree with the "just rename it" approach. I had forgotten we haven't actually released this yet.
Regarding AbstractDialogContextManagerListener, I agree with you about the length ... fortunately it only needs to get used twice :-). I'll also go ahead and make the three-line change to SCXMLDialogManager. I also noticed a couple of places where we haven't followed the JavaBeans *conventional* patterns (not defined in the specs, but seems to be commonly recognized by IDEs) of being able to call getFooListener() and get an array of registered listeners back. There's also a couple of places we need to clean up synchronization, or add some missing ones. A remaining design issue is a bootstrapping one ... how do you find out when a DesignContextManager gets created and adde to a user's session? (And, likewise, when it goes away.) That will probably require one more sort of listener declaration, probably with a PhaseListener style registration.
Craig McClanahan made changes - 04/Dec/06 08:17 PM
The bootstrapping concern has been addressed. In addition, the most common use cases for dialog events have been dealt with by automatically registering the "data" object as a DialogContextListener if it implements this interface.
Craig McClanahan made changes - 12/Dec/06 07:00 AM
Rahul Akolkar made changes - 23/Jan/07 04:40 PM
Jeff Turner made changes - 09/Aug/07 07:15 AM
Antonio Petrelli made changes - 08/Jan/09 08:56 AM
Antonio Petrelli made changes - 08/Jan/09 09:08 AM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
As a purely stylistic comment, AbstractDialogContextManagerListener is about as long of a classname as I personally prefer, but I have no better ideas ATM either, and it seems consistent, so lets just make progress.
I take it this is assigned to you? In any case, I'd be happy to update the dialog-scxml module once the base is in place, if that helps.