0
kicks
Factory factory pattern: easier than using a container
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.