Factory factory pattern: easier than using a container(richarddingwall.name)
submitted by
rdingwall(323) 2 years, 2 months ago
Here’s a simple example of a class that creates file transfers using different protocols, which can be combined into a big queue later. It’s based loosely on something I wrote last week at work, and you can see some pretty classic examples of the Strategy and Abstract Factory patterns here.
|category: Patterns
|Views: 30
tags:
Patterns another
Everyones tags:
Your Tags: