Idea is you extract the volatile core code and put it into external factory object.
Instead of configuring factory at the time of construction (usual in Java),
GoF factory design pattern says you should be able to create a general factory and then
set the type of connection at the time of connection creation.
No comments:
Post a Comment