<?xml version="1.0" encoding="UTF-8"?>











<rss version="2.0" xmlns:jf="http://www.jivesoftware.com/xmlns/jiveforums/rss">



<channel>
    <title>Support Forums: Message List - A beginners guide to Dependency Injection</title>
    <link>http://www.theserverside.com</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    
        <generator>Jive Forums Silver 5.5.30 (www.jivesoftware.com)</generator>
    
    <pubDate>Tue, 21 May 2013 20:23:04 -0400</pubDate>


    <item>

        <title>Finally, someone that understands &amp;quot;program to an interface, ...&amp;quot;</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=34167</link>

        

        
            <description><![CDATA[What more can I say, thanks Stephen for pointing out the facts!<br><br>Indeed, the GoF were talking about situations with multiple implementations for the same abstraction, in which case it's obvious that one should &quot;program to the interface, not...]]></description>
        

        <pubDate>Sat, 06 May 2006 22:23:18 -0400</pubDate>

        

        <jf:creationDate>Sat, 06 May 2006 22:23:18 -0400</jf:creationDate>
        <jf:modificationDate>Sat, 06 May 2006 22:23:18 -0400</jf:modificationDate>
        <jf:date>May 6, 2006</jf:date>
        <jf:author>Rogerio Liesenfeld</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Dependency Injection vs Service Locator</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=34167</link>

        

        
            <description><![CDATA[Good article. Perhaps is this question beyond the scope of the article but what are the benefits of DI versus the Service Locator pattern we are familiar with in J2EE?]]></description>
        

        <pubDate>Tue, 30 Aug 2005 11:22:51 -0400</pubDate>

        

        <jf:creationDate>Tue, 30 Aug 2005 11:22:51 -0400</jf:creationDate>
        <jf:modificationDate>Tue, 30 Aug 2005 11:22:51 -0400</jf:modificationDate>
        <jf:date>Aug 30, 2005</jf:date>
        <jf:author>Jean Andriamalala</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Dependency Injection in J2EE 5.0</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=34167</link>

        

        
            <description><![CDATA[Which kind of emphasises the point that discussing DI as something &quot;different&quot; is moot. It's now a commodity as we see from both EJB 3.0 and JSF. The best of breed IoC containers are adding functionality over and above the dependency injection...]]></description>
        

        <pubDate>Mon, 11 Jul 2005 08:34:45 -0400</pubDate>

        

        <jf:creationDate>Mon, 11 Jul 2005 08:34:45 -0400</jf:creationDate>
        <jf:modificationDate>Mon, 11 Jul 2005 08:34:45 -0400</jf:modificationDate>
        <jf:date>Jul 11, 2005</jf:date>
        <jf:author>Duncan Mills</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Programming to Interfaces</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=34167</link>

        

        
            <description><![CDATA[<blockquote><blockquote>I think the real reason frameworks like Spring, JMock, EasyMock, etc encourage you to use interfaces is that at least in their early versions they were using the JDK proxy API, which only works with interfaces. </blockquote>This...]]></description>
        

        <pubDate>Thu, 07 Jul 2005 13:06:41 -0400</pubDate>

        

        <jf:creationDate>Thu, 07 Jul 2005 13:06:41 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 07 Jul 2005 13:06:41 -0400</jf:modificationDate>
        <jf:date>Jul 7, 2005</jf:date>
        <jf:author>Stephen Molitor</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Programming to Interfaces</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=34167</link>

        

        
            <description><![CDATA[<blockquote>I think the real reason frameworks like Spring, JMock, EasyMock, etc encourage you to use interfaces is that at least in their early versions they were using the JDK proxy API, which only works with interfaces. </blockquote>This is not the...]]></description>
        

        <pubDate>Thu, 07 Jul 2005 13:01:00 -0400</pubDate>

        

        <jf:creationDate>Thu, 07 Jul 2005 13:01:00 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 07 Jul 2005 13:01:00 -0400</jf:modificationDate>
        <jf:date>Jul 7, 2005</jf:date>
        <jf:author>Rod Johnson</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>Dependency Injection in J2EE 5.0</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=34167</link>

        

        
            <description><![CDATA[Read my blog entry <a href="http://radio.weblogs.com/0135826/2005/06/02.html#a149" target="_blank"> Dependency Injection and J2EE 5.0 </a> to know how dependency injection will be supported in J2EE 5.0.<br><br>Also you can try out the dependency...]]></description>
        

        <pubDate>Thu, 07 Jul 2005 12:52:28 -0400</pubDate>

        

        <jf:creationDate>Thu, 07 Jul 2005 12:52:28 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 07 Jul 2005 12:52:28 -0400</jf:modificationDate>
        <jf:date>Jul 7, 2005</jf:date>
        <jf:author>Debu Panda</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>isn't the world static :)</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=34167</link>

        

        
            <description><![CDATA[<blockquote>When I see people say &quot;just use statics&quot; I cringe; statics are <i>dangerous</i> in a threaded environement, especially inside an application server.  They get in the way of redeployment, undeployment, and GC.</blockquote><br>sorry,...]]></description>
        

        <pubDate>Thu, 07 Jul 2005 12:29:20 -0400</pubDate>

        

        <jf:creationDate>Thu, 07 Jul 2005 12:29:20 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 07 Jul 2005 12:29:20 -0400</jf:modificationDate>
        <jf:date>Jul 7, 2005</jf:date>
        <jf:author>peter lin</jf:author>
        <jf:replyCount>2</jf:replyCount>
    </item>


    <item>

        <title>HiveMind Descriptor</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=34167</link>

        

        
            <description><![CDATA[Using HiveMind 1.1, the descriptor could be abbreviated to:<br><br>&lt;?xml version=&quot;1.0&quot;?&gt;<br>&lt;module id=&quot;com.dnene.ditutorial.hivemind&quot; version=&quot;1.0.0&quot;...]]></description>
        

        <pubDate>Thu, 07 Jul 2005 12:28:29 -0400</pubDate>

        

        <jf:creationDate>Thu, 07 Jul 2005 12:28:29 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 07 Jul 2005 12:28:29 -0400</jf:modificationDate>
        <jf:date>Jul 7, 2005</jf:date>
        <jf:author>Howard Lewis Ship</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>But why would I want to use this?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=34167</link>

        

        
            <description><![CDATA[If you think about IoC containers as just a way to instantiate objects and connect them together, you are missing the forrest for the trees.<br><br>The value of Spring and HiveMind is the almost invisible value-adds:<br><br><b>Thread safety</b> is...]]></description>
        

        <pubDate>Thu, 07 Jul 2005 12:24:24 -0400</pubDate>

        

        <jf:creationDate>Thu, 07 Jul 2005 12:24:24 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 07 Jul 2005 12:24:24 -0400</jf:modificationDate>
        <jf:date>Jul 7, 2005</jf:date>
        <jf:author>Howard Lewis Ship</jf:author>
        <jf:replyCount>3</jf:replyCount>
    </item>


    <item>

        <title>Programming to Interfaces</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=34167</link>

        

        
            <description><![CDATA[<blockquote>However, I think Spring always allowed for proxying by class and by interface, so I don't believe that they made any decisions because of the Proxy.</blockquote><br>That's good to know.  I retract my earlier statement!<br><blockquote>Worst...]]></description>
        

        <pubDate>Thu, 07 Jul 2005 12:13:26 -0400</pubDate>

        

        <jf:creationDate>Thu, 07 Jul 2005 12:13:26 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 07 Jul 2005 12:13:26 -0400</jf:modificationDate>
        <jf:date>Jul 7, 2005</jf:date>
        <jf:author>Stephen Molitor</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>A beginners guide to Dependency Injection</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=34167</link>

        

        
            <description><![CDATA[<blockquote>I don't get why pico container and several others IoCCs use component interface as a service(component) identifier. In my view several different services(components) may be specified by the same interface, e.g. Runnable. How these frameworks...]]></description>
        

        <pubDate>Thu, 07 Jul 2005 12:08:27 -0400</pubDate>

        

        <jf:creationDate>Thu, 07 Jul 2005 12:08:27 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 07 Jul 2005 12:08:27 -0400</jf:modificationDate>
        <jf:date>Jul 7, 2005</jf:date>
        <jf:author>Howard Lewis Ship</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Programming to Interfaces</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=34167</link>

        

        
            <description><![CDATA[<blockquote><blockquote>So while programming to interfaces rather than classes is a well-known best practice dating back years (advanced in the GoF book and elsewhere)....</blockquote>This is nitpicking (and getting off topic), but the GoF were not...]]></description>
        

        <pubDate>Thu, 07 Jul 2005 11:32:14 -0400</pubDate>

        

        <jf:creationDate>Thu, 07 Jul 2005 11:32:14 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 07 Jul 2005 11:32:14 -0400</jf:modificationDate>
        <jf:date>Jul 7, 2005</jf:date>
        <jf:author>David McCoy</jf:author>
        <jf:replyCount>2</jf:replyCount>
    </item>


    <item>

        <title>Programming to Interfaces</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=34167</link>

        

        
            <description><![CDATA[<blockquote>So while programming to interfaces rather than classes is a well-known best practice dating back years (advanced in the GoF book and elsewhere)....</blockquote><br>This is nitpicking (and getting off topic), but the GoF were not advocating...]]></description>
        

        <pubDate>Thu, 07 Jul 2005 11:18:29 -0400</pubDate>

        

        <jf:creationDate>Thu, 07 Jul 2005 11:18:29 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 07 Jul 2005 11:18:29 -0400</jf:modificationDate>
        <jf:date>Jul 7, 2005</jf:date>
        <jf:author>Stephen Molitor</jf:author>
        <jf:replyCount>5</jf:replyCount>
    </item>


    <item>

        <title>String service ids in pico</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=34167</link>

        

        
            <description><![CDATA[<blockquote>I don't get why pico container and several others IoCCs use component interface as a service(component) identifier. In my view several different services(components) may be specified by the same interface, e.g. Runnable.</blockquote><br>This...]]></description>
        

        <pubDate>Thu, 07 Jul 2005 10:41:01 -0400</pubDate>

        

        <jf:creationDate>Thu, 07 Jul 2005 10:41:01 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 07 Jul 2005 10:41:01 -0400</jf:modificationDate>
        <jf:date>Jul 7, 2005</jf:date>
        <jf:author>Stephen Molitor</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>But why would I want to use this?</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=34167</link>

        

        
            <description><![CDATA[<blockquote>Why not use a Java class ie JavaDefaultContext with a lot of getters which do exactly the same thing as the &lt;bean&gt; tags do in a applicationContext.xml - instantiating and wiring.&amp;nbsp;</blockquote><br>Does this do anything for...]]></description>
        

        <pubDate>Thu, 07 Jul 2005 08:05:18 -0400</pubDate>

        

        <jf:creationDate>Thu, 07 Jul 2005 08:05:18 -0400</jf:creationDate>
        <jf:modificationDate>Thu, 07 Jul 2005 08:05:18 -0400</jf:modificationDate>
        <jf:date>Jul 7, 2005</jf:date>
        <jf:author>Dave Hewitt</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>



</channel>
</rss>

