Generic self-registering factory – no more need to write factories
It’s somewhat annoying that a factory needs to depend on all classes that inherit from the common interface. This issue can be avoided using a self-registering factory.
For nerds, by nerds