This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 38075
    
  22
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.
 
jQuery in Action, 2nd edition
 
subject: Clarification on AbstractFactoryMethod and FactoryMethod
 
Similar Threads
Patterns: Abstract Factory Vs Factory Method
How can I create an object based on input
SimpleFactory or FactoryMethod? What is the Difference?
EJBHome
desing patterns