The Factory Pattern: Java Design Patterns and Architecture, Part 17

A tutorial on the factory pattern in Java. The factory pattern involves creating one or more "factory methods" that instantiates and return objects, configuring them if necessary and making decisions about precisely which objects to return, encapsulating and hiding these hideous details from the user of your API (which may be yourself).



Source Code



DesignPatterns17 - Factory Pattern.zip

Next ...


Facades: Java Design Patterns and Architecture, Part 18