This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes Clarification on AbstractFactoryMethod and FactoryMethod Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Clarification on AbstractFactoryMethod and FactoryMethod" Watch "Clarification on AbstractFactoryMethod and FactoryMethod" New topic
Author

Clarification on AbstractFactoryMethod and FactoryMethod

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi All,

I google about *AbstractFactoryMethod and FactoryMethod*. I get the many links, but I cant understand thoroughly about that concepts/difference.

1.FAQ entry

can any one show me light on this ? /
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

any light on this?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36599
    
  16
Seetharaman Venkatasamy wrote:any light on this?
Read this.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Ok.sorry Campbell .

and here is my understading

Factory Method: [contains new Instance]which create an Object . client know about what type of Object to be instantiate .

AbstractFactoryMethod:Abstract Factory method is a Factory,which dont have the Implementation, Subclasses instantiate the type of Object Using FactoryMethod[every related objects needs to have the Factory Method] .
and third class(client) use Abstract Factory to instantiate family realeted dependent objects , and the client dont have the idea of what type of object it is going to create.
 
 
subject: Clarification on AbstractFactoryMethod and FactoryMethod
 
Similar Threads
SimpleFactory or FactoryMethod? What is the Difference?
EJBHome
desing patterns
Patterns: Abstract Factory Vs Factory Method
How can I create an object based on input