<?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: Factory Method Pattern</title>
	<atom:link href="http://javapapers.com/design-patterns/factory-method-pattern/feed/" rel="self" type="application/rss+xml" />
	<link>http://javapapers.com/design-patterns/factory-method-pattern/</link>
	<description>BLOG on core java, servlets, JSP, design patterns interview questions with quality answers, source code and discussions.</description>
	<lastBuildDate>Fri, 30 Jul 2010 10:43:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Amardeep Singh</title>
		<link>http://javapapers.com/design-patterns/factory-method-pattern/comment-page-1/#comment-1737</link>
		<dc:creator>Amardeep Singh</dc:creator>
		<pubDate>Thu, 15 Jul 2010 05:00:56 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=231#comment-1737</guid>
		<description>The example is good. but to make it more apparent with the definition  put the public Pet getPet(String petType) in an interface and let PetFactory inplement this interface. Reason any conventional definition tell you that there are four aspects to Factory Method.

1. Product --- in your case it is Pet. The interface of objects created by the factory

2. Concrete Product -- in your case it is Dog and Duck .The implementing class of Product. Object of this class is created by ConcreteCreator.

3. Creator --- Which is the interface i am talking about. This interface defines the factory methods

4. Concrete Creator -- PetFactory in your case. This class that extends Creator and that provides an implementation for the factoryMethod. This can return any object that implements Product interface.


This will give the readers exact implementation for Factory Method.</description>
		<content:encoded><![CDATA[<p>The example is good. but to make it more apparent with the definition  put the public Pet getPet(String petType) in an interface and let PetFactory inplement this interface. Reason any conventional definition tell you that there are four aspects to Factory Method.</p>
<p>1. Product &#8212; in your case it is Pet. The interface of objects created by the factory</p>
<p>2. Concrete Product &#8212; in your case it is Dog and Duck .The implementing class of Product. Object of this class is created by ConcreteCreator.</p>
<p>3. Creator &#8212; Which is the interface i am talking about. This interface defines the factory methods</p>
<p>4. Concrete Creator &#8212; PetFactory in your case. This class that extends Creator and that provides an implementation for the factoryMethod. This can return any object that implements Product interface.</p>
<p>This will give the readers exact implementation for Factory Method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vruddhi</title>
		<link>http://javapapers.com/design-patterns/factory-method-pattern/comment-page-1/#comment-1552</link>
		<dc:creator>vruddhi</dc:creator>
		<pubDate>Fri, 25 Jun 2010 06:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=231#comment-1552</guid>
		<description>Really good. I have understood it now. Thanks a lot</description>
		<content:encoded><![CDATA[<p>Really good. I have understood it now. Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prachi Gupta</title>
		<link>http://javapapers.com/design-patterns/factory-method-pattern/comment-page-1/#comment-997</link>
		<dc:creator>Prachi Gupta</dc:creator>
		<pubDate>Thu, 04 Mar 2010 17:31:06 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=231#comment-997</guid>
		<description>Nice and simplified explaination of a good design pattern..Good effort</description>
		<content:encoded><![CDATA[<p>Nice and simplified explaination of a good design pattern..Good effort</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dilip</title>
		<link>http://javapapers.com/design-patterns/factory-method-pattern/comment-page-1/#comment-948</link>
		<dc:creator>dilip</dc:creator>
		<pubDate>Thu, 18 Feb 2010 06:24:44 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=231#comment-948</guid>
		<description>Thanks

Simple and Nice explanation. Able to understand the basic defenition of the Factory methods.</description>
		<content:encoded><![CDATA[<p>Thanks</p>
<p>Simple and Nice explanation. Able to understand the basic defenition of the Factory methods.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram</title>
		<link>http://javapapers.com/design-patterns/factory-method-pattern/comment-page-1/#comment-905</link>
		<dc:creator>Ram</dc:creator>
		<pubDate>Thu, 04 Feb 2010 12:34:19 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=231#comment-905</guid>
		<description>This is good article. explained in very clear understanding way.

Thanks for your post.</description>
		<content:encoded><![CDATA[<p>This is good article. explained in very clear understanding way.</p>
<p>Thanks for your post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abstract Factory Pattern</title>
		<link>http://javapapers.com/design-patterns/factory-method-pattern/comment-page-1/#comment-228</link>
		<dc:creator>Abstract Factory Pattern</dc:creator>
		<pubDate>Wed, 11 Nov 2009 16:01:24 +0000</pubDate>
		<guid isPermaLink="false">http://javapapers.com/?p=231#comment-228</guid>
		<description>[...] To keep things simple you can understand it like, you have a set of &#8216;related&#8217; factory method design pattern. Then you will put all those set of simple factories inside a factory pattern. So in turn you need [...]</description>
		<content:encoded><![CDATA[<p>[...] To keep things simple you can understand it like, you have a set of &#8216;related&#8217; factory method design pattern. Then you will put all those set of simple factories inside a factory pattern. So in turn you need [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
