I have facade interface where users can ask for information about lets say Engineers. That information should be transferred as JSON of which we made a DTO for. Now remember, I have multiple datasources that can provide information to this list of DTO.
So I believe right now that I can use Decorative Pattern by adding handler of the datasource to the myEngineerListDTO of type List. So by that I mean all the datasources have the same DTO.
This picture below shows that VerticalScrollbar and HorizontalScrollBar have different behaviours added. Which means they add different kind of value to the decoratorWindowTest. 
My question, does my situation fit the decorator pattern? Do I specifically need to add a different behaviour? And is there another pattern that does fit my situation?
Aucun commentaire:
Enregistrer un commentaire