File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 38851
    
  23
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Clarification on AbstractFactoryMethod and FactoryMethod