Few days ago I started this project on github.
The overall design rounds around the Abstract Factory design pattern [1].
As you can see from the following diagram, the StorageLayerFactory class plays the role of the AbstractFactory and therefore defines the contract that each concrete implementor (i.e. family) must provide in order to create concrete products for a specific kind of storage.
As you can see from the following diagram, the StorageLayerFactory class plays the role of the AbstractFactory and therefore defines the contract that each concrete implementor (i.e. family) must provide in order to create concrete products for a specific kind of storage.
- an implementation of the StorageLayerFactory (i.e. the Concrete Factory);
- a concrete implementation of each (abstract) product defined in the diagram below (i.e. the Concrete Products)
Feel free to take a look and let me know your thoughts.
Gazza
No comments:
Post a Comment