I am curious to know if it is OK (Normal) to use Strategy pattern to change the behavior of a Builder object ?
This is an example. Lets say we have the following classes and I want to use the builder to create certain type of view model for my web page.
BuilderA
BuilderB
StrategyA
StrategyB
We pass in Data1 and Data2 to BuilderA
We pass in Data3 and Data4 to BuilderB
Lets say depending on Data that we passed in we want to create certain ViewModels using those strategies. StrategyA can make ViewModelA and StrategyB can make ViewModelB. I want to be able to modify those Strategies separately without changing my builders.
Please let me know if that is not clear and I will explain more.
Thanks in advance !