next up previous
Next: Template Up: Design patterns used in Previous: Proxy


The Strategy pattern is used when we want to be able to do the same action in a few slightly different ways, like save a file using one of several formats or calculate a value using various algorithms. In Jdbdump, a strategy is used to select the preferred format of the dump file and the preferred compression algorithm (Gzip, Zip or none).

Wiktor Kolodziej 2006-01-12