Lot of options for how to implement Strategy Pattern with dependency injection using Spring.
Given an enum, we need follow a determined flux in application and to return always the same object type.
We would like of a dynamic and uncoupled solution (obviously).
The exciting part of the history is that each strategy is a Bean (the project uses Spring).
We think about use Strategy Design Pattern.
For this reason, we have built several strategies with the objective can choose dynamicly the Bean.
Which is the best implementation? Some suggestion?
🤘