BloggingAbout.NET
Thoughts of developers
Sign in
|
Join
|
Help
Home
Blogs
Media
All Tags
»
IDisposable
»
dependancy injection
(
RSS
)
Browse Blog Posts by Tags
Showing related tags and posts for the
Blogs
application. See
all tags in the site
Design
disposing
patterns
responsiblity
Injected objects should not be disposed be the class that receives the instance
I just read Windsor: Component Burden described as a (bad) side effect but this is not how it should work. Disposable objects should be cleanup by its creator. This is the easiest way to define the disposing responsibility! In the mentioned article they have a situation where A injects X into B at construction...
Posted to
Ramon Smits
by
Ramon Smits
on Thu, Feb 28 2008
Filed under:
Filed under:
Design
,
dependancy injection
,
disposing
,
patterns
,
IDisposable
,
responsiblity
Page 1 of 1 (1 items)
Copyright © 2003-2010 BloggingAbout.NET