[TFUI] Re: Dialogs and EventHandlers
"Scott Bellware" <[email protected]> Fri, 04 Nov 2005 18:10:54 -0000
| Newsgroups | gmane.comp.programming.test-first-user-interfaces |
|---|---|
| Message-ID | <[email protected]> |
Cory Foy <usergroup@c...> wrote:
> I'd love you have your feedback on if this would have been the
> approach you would have taken and anything else I could have done
> differently
Great post!
If you're going to add a configuration item to influence which
IFontDialog that the FontDialogFactory will create, why not just put
the class name of the font dialog in the config and then instantiate
it using the System.Reflection.Actovator? This will free your code
from external environmental conditions (like, IS-THIS-A-TEST), and
will knock a couple Cyclomatic Complexity points off of the
GetFontDialog method.
And... if you add the class name to configuration, you might as well
just use Spring to activate the instance using it's XmlObjectFactory
or ApplicationContext so that you don't have to write the activation
code yourself :)
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/TestFirstUserInterfaces/
<*> To unsubscribe from this group, send an email to:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/