Possible Duplicate:
Examples of GoF Design Patterns
Is there a Java API class which follows the factory design pattern?
Possible Duplicate:
Examples of GoF Design Patterns
Is there a Java API class which follows the factory design pattern?
You can have a look at SAXParserFactory.
It is a factory class which can be used to intantiate SAX based parsers to pares XML. The method newInstance
is the factory method which instantiates the sax parsers based on some predefined logic.