Having a result of REST or JPA query I have an often requirement to decorate items with some additional attributes that come from some other queries. To avoid coping and processing the list ( the result ) I am thinking about a runtime universal list decorator that contains items decorated at runtime.
The question: is there any standard pattern for that?
Example: as a result of REST query I have list of people. I need to decorate each person with vacation quota.
I searched occasionally for such pattern for many years but couldn't find anything.
Aucun commentaire:
Enregistrer un commentaire