Welcome Guest Search | Active Topics | Members | Log In | Register

Singlons are bad design Options · View
rboeije
Posted: Thursday, May 07, 2009 3:47:29 PM

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.aspx

Somebody has any ideas about this?
rwolff
Posted: Wednesday, May 20, 2009 11:21:08 AM

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
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Theme Created for the Accelerated Delivery Platform
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.030 seconds.