 Rank: Advanced Member Groups: Member
Joined: 6/13/2008 Posts: 31 Points: 93 Location: Maarssen
|
The ADF framework has loads of singletons and statics. Some say they are bad design and not testable. See: http://blogs.msdn.com/scottdensmore/archive/2004/05/25/140827.aspxSomebody has any ideas about this?
|
 Rank: Administration Groups: Administration
Joined: 5/29/2008 Posts: 14 Points: 42 Location: Zoetermeer
|
The ADF Framework is using the SystemFactory with config files where it's easy to configure if you want to use singletons or instantiable objects. Especially for the 'common' mechanisms in the framework. Default are only the managers (bridge pattern) static classes and de plugged in providers are instantiated as singletons.
I agree with the comments of Scot in the blog: In the ADF Framework we are using Dependancy Injection for lousely coupling between classes. Also the SystemFactory helps you to get the stuff in control
Robert de Wolff - ADP Core Team
|