I have a List of campaigns that need to be processed via different kinds of filters for e.g., Platform Filter, Application Filter, CampaignRunning Filter to check the current date should be between Start Date and End Date etc.
There are ideally 15 - 20 different filters, I am managing them using Intercept Design Pattern.
before applying filters List could be empty, so should I use NullValueFilter
in the filter chain?
after applying some filters list again can be empty, to check that also should I inject the same null or empty check strategy using the strategy design pattern?
I usually think more on designing perspective to manage such cases. I want to know if I am thinking in the right direction or I am overengineering on that part.
Aucun commentaire:
Enregistrer un commentaire