<?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: Google Guice Tutorial</title>
	<atom:link href="http://www.factorypattern.com/google-guice-tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.factorypattern.com/google-guice-tutorial/</link>
	<description>Just another Object Oriented Weblog</description>
	<lastBuildDate>Fri, 12 Feb 2010 18:48:20 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: admin</title>
		<link>http://www.factorypattern.com/google-guice-tutorial/comment-page-1/#comment-13</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 29 Apr 2008 19:26:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.factorypattern.com/google-guice-tutorial/#comment-13</guid>
		<description>As I know that&#039;s the only way to change the default binding: creating a Module class. Additionally a Provider (not discussed in this post) class can be created encapsulating some logic to decide at runtime which implementation should be provided.

The problem you described seems to be solved using a strategy pattern. Maybe I would go for it is I couldn&#039;t create a Module class...</description>
		<content:encoded><![CDATA[<p>As I know that&#8217;s the only way to change the default binding: creating a Module class. Additionally a Provider (not discussed in this post) class can be created encapsulating some logic to decide at runtime which implementation should be provided.</p>
<p>The problem you described seems to be solved using a strategy pattern. Maybe I would go for it is I couldn&#8217;t create a Module class&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregg Bolinger</title>
		<link>http://www.factorypattern.com/google-guice-tutorial/comment-page-1/#comment-12</link>
		<dc:creator>Gregg Bolinger</dc:creator>
		<pubDate>Tue, 29 Apr 2008 15:38:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.factorypattern.com/google-guice-tutorial/#comment-12</guid>
		<description>Good article.  The only thing missing is how you bind both Notifier implementations and use one or the other without writing a Module to do the binding.  There would be times when you would need to switch between sending and email and sending an SMS in a live environment.  How do you handle that?</description>
		<content:encoded><![CDATA[<p>Good article.  The only thing missing is how you bind both Notifier implementations and use one or the other without writing a Module to do the binding.  There would be times when you would need to switch between sending and email and sending an SMS in a live environment.  How do you handle that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.factorypattern.com/google-guice-tutorial/comment-page-1/#comment-11</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 26 Apr 2008 10:10:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.factorypattern.com/google-guice-tutorial/#comment-11</guid>
		<description>Fixed it in the post. :) Thanks:)</description>
		<content:encoded><![CDATA[<p>Fixed it in the post. <img src='http://www.factorypattern.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WurstFromHell</title>
		<link>http://www.factorypattern.com/google-guice-tutorial/comment-page-1/#comment-10</link>
		<dc:creator>WurstFromHell</dc:creator>
		<pubDate>Fri, 25 Apr 2008 20:22:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.factorypattern.com/google-guice-tutorial/#comment-10</guid>
		<description>Nice article. As I tried your examples I stumbled upon a little mistake at the end:

Customer customer = injector.getInstance(Customer.class);
must be 
Customer customer = anotherInjector.getInstance(Customer.class);

I&#039;m looking forward to your next article!</description>
		<content:encoded><![CDATA[<p>Nice article. As I tried your examples I stumbled upon a little mistake at the end:</p>
<p>Customer customer = injector.getInstance(Customer.class);<br />
must be<br />
Customer customer = anotherInjector.getInstance(Customer.class);</p>
<p>I&#8217;m looking forward to your next article!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.factorypattern.com/google-guice-tutorial/comment-page-1/#comment-9</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 25 Apr 2008 16:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.factorypattern.com/google-guice-tutorial/#comment-9</guid>
		<description>You&#039;re right, I&#039;ve updated the article. Thanks for the remark :)</description>
		<content:encoded><![CDATA[<p>You&#8217;re right, I&#8217;ve updated the article. Thanks for the remark <img src='http://www.factorypattern.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonhnny Weslley</title>
		<link>http://www.factorypattern.com/google-guice-tutorial/comment-page-1/#comment-8</link>
		<dc:creator>Jonhnny Weslley</dc:creator>
		<pubDate>Fri, 25 Apr 2008 13:19:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.factorypattern.com/google-guice-tutorial/#comment-8</guid>
		<description>Great post!!!

But the constructor injector is wrong. It&#039;s must to be:
public class Customer {
…
      private Notifier notifier;

      @Inject
      public Customer(Notifier notifier) {
            this.notifier = notifier;
      }
…
}</description>
		<content:encoded><![CDATA[<p>Great post!!!</p>
<p>But the constructor injector is wrong. It&#8217;s must to be:<br />
public class Customer {<br />
…<br />
      private Notifier notifier;</p>
<p>      @Inject<br />
      public Customer(Notifier notifier) {<br />
            this.notifier = notifier;<br />
      }<br />
…<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.578 seconds -->
