<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Dependency injection and service locator</title>
	<atom:link href="http://blog.vuscode.com/malovicn/archive/2007/01/19/dependency-injection-and-service-locator.aspx/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.vuscode.com/malovicn/archive/2007/01/19/dependency-injection-and-service-locator.aspx</link>
	<description>Coding dreams since 1998!</description>
	<lastBuildDate>Thu, 17 Jan 2013 18:15:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: yong</title>
		<link>http://blog.vuscode.com/malovicn/archive/2007/01/19/dependency-injection-and-service-locator.aspx#comment-56</link>
		<dc:creator>yong</dc:creator>
		<pubDate>Mon, 01 Feb 2010 22:44:24 +0000</pubDate>
		<guid isPermaLink="false">http://#comment-56</guid>
		<description><![CDATA[&lt;p&gt;Hi, very interesting article. Simple and easy to understand.&lt;/p&gt;
&lt;p&gt;I have one question, what is the difference between the Factory and Service Locator?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>Hi, very interesting article. Simple and easy to understand.</p>
<p>I have one question, what is the difference between the Factory and Service Locator?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: malovicn</title>
		<link>http://blog.vuscode.com/malovicn/archive/2007/01/19/dependency-injection-and-service-locator.aspx#comment-55</link>
		<dc:creator>malovicn</dc:creator>
		<pubDate>Sat, 23 May 2009 09:54:35 +0000</pubDate>
		<guid isPermaLink="false">http://#comment-55</guid>
		<description><![CDATA[&lt;p&gt;Json,&lt;/p&gt;
&lt;p&gt;you are right from pattern point of view but...&lt;/p&gt;
&lt;p&gt;Applying DI without the help of IoC container is quite an overkill and lead to broken encapsulation and if you think about DI in context of IoC containers you would see that each one of the IoC containers performing DI (Unity, StructureMap, Windsor, Ninject etc) have allways a ServiceLocator class which you use to register, retrieve your services.&lt;/p&gt;
&lt;p&gt;IMHO, In that context SL could be called as a technique of performing DI altought I am aware it is Fowler POEA pattern &lt;/p&gt;
&lt;p&gt;Please check out some of my more recent post presenting my views on the necessity of SL in big corps&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://blog.vuscode.com/malovicn/archive/2008/12/23/dependency-injection-in-real-world.aspx&quot; rel=&quot;nofollow&quot;&gt;blog.vuscode.com/.../dependency-injection-in-real-world.aspx&lt;/a&gt;&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>Json,</p>
<p>you are right from pattern point of view but&#8230;</p>
<p>Applying DI without the help of IoC container is quite an overkill and lead to broken encapsulation and if you think about DI in context of IoC containers you would see that each one of the IoC containers performing DI (Unity, StructureMap, Windsor, Ninject etc) have allways a ServiceLocator class which you use to register, retrieve your services.</p>
<p>IMHO, In that context SL could be called as a technique of performing DI altought I am aware it is Fowler POEA pattern </p>
<p>Please check out some of my more recent post presenting my views on the necessity of SL in big corps</p>
<p><a rel="nofollow" target="_new" href="http://blog.vuscode.com/malovicn/archive/2008/12/23/dependency-injection-in-real-world.aspx" rel="nofollow">blog.vuscode.com/&#8230;/dependency-injection-in-real-world.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Json</title>
		<link>http://blog.vuscode.com/malovicn/archive/2007/01/19/dependency-injection-and-service-locator.aspx#comment-54</link>
		<dc:creator>Json</dc:creator>
		<pubDate>Fri, 08 May 2009 17:51:28 +0000</pubDate>
		<guid isPermaLink="false">http://#comment-54</guid>
		<description><![CDATA[&lt;p&gt;This was a good article all the way up until you said, &quot;Service Locator is a dependency injection technique&quot;.&lt;/p&gt;
&lt;p&gt;DI is a pattern like SL. However, DI is a pattern to achieve IoC. The roots of IoC is changing who is in control. A component that internally resolves it&#039;s own dependencies is in control (SL style). This is the traditional way. A component that is given dependencies is NOT in control (DI style). This is IoC in the context of dependency resolution. &#160;&lt;/p&gt;
&lt;p&gt;DI achieves IoC, SL does not. &lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>This was a good article all the way up until you said, &quot;Service Locator is a dependency injection technique&quot;.</p>
<p>DI is a pattern like SL. However, DI is a pattern to achieve IoC. The roots of IoC is changing who is in control. A component that internally resolves it&#8217;s own dependencies is in control (SL style). This is the traditional way. A component that is given dependencies is NOT in control (DI style). This is IoC in the context of dependency resolution. &nbsp;</p>
<p>DI achieves IoC, SL does not. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: malovicn</title>
		<link>http://blog.vuscode.com/malovicn/archive/2007/01/19/dependency-injection-and-service-locator.aspx#comment-53</link>
		<dc:creator>malovicn</dc:creator>
		<pubDate>Tue, 23 Dec 2008 12:04:30 +0000</pubDate>
		<guid isPermaLink="false">http://#comment-53</guid>
		<description><![CDATA[&lt;p&gt;I&#039;ve just blog posted another blog post touching the same subject (Service locator vs. Dependency injection) from a different and a little bit more advanced angle &lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://blog.vuscode.com/malovicn/archive/2008/12/23/dependency-injection-in-real-world.aspx&quot; rel=&quot;nofollow&quot;&gt;blog.vuscode.com/.../dependency-injection-in-real-world.aspx&lt;/a&gt;&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve just blog posted another blog post touching the same subject (Service locator vs. Dependency injection) from a different and a little bit more advanced angle </p>
<p><a rel="nofollow" target="_new" href="http://blog.vuscode.com/malovicn/archive/2008/12/23/dependency-injection-in-real-world.aspx" rel="nofollow">blog.vuscode.com/&#8230;/dependency-injection-in-real-world.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zaletskyy Yuriy</title>
		<link>http://blog.vuscode.com/malovicn/archive/2007/01/19/dependency-injection-and-service-locator.aspx#comment-52</link>
		<dc:creator>Zaletskyy Yuriy</dc:creator>
		<pubDate>Fri, 28 Nov 2008 15:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://#comment-52</guid>
		<description><![CDATA[&lt;p&gt;Thanks for this explanation. It is very usefull for me. I needed some easy to understand explanation for my&lt;/p&gt;
]]></description>
		<content:encoded><![CDATA[<p>Thanks for this explanation. It is very usefull for me. I needed some easy to understand explanation for my</p>
]]></content:encoded>
	</item>
</channel>
</rss>
