next up previous
Next: Builder Up: Design patterns used in Previous: MVC - Model-View-Controller


A simple class that returns an instance of one of several possible classes depending on the data provided to it. This pattern is implemented by DatabaseConnectionFactory - a class that produces connection with the given type of database.

Wiktor Kolodziej 2006-01-12