jeudi 21 février 2019

Where do the common utilities go in Strategy pattern

I need to enable 2 components of my software according to multiple conditions. So, I am thinking to use strategy pattern. On high level, based on the parameter, I will check which software component eligibility need to be checked (I may need to check both sometimes). Both of the strategies will be using some common methods & parameters. But from the tutorials, I couldn't get the information regarding where should these common parameters exist & how these will be accessed by the strategies. I am implementing this in java. Please suggest.

Aucun commentaire:

Enregistrer un commentaire