I'm working on an application for data processing where users need to be able to select operations to perform on the data when it is being retrieved. This will be done using a data flow language, and it will need to be generated by taking the parameters the user has given. This system needs to be extensible, so that more operations can be added in the future without too much added complexity.
A possible design pattern I’ve looked into was using the Decorator pattern and decorating a base query with different decorators that consist of reusable operations. However I’m not sure how to handle and validate the execution order when using the decorator pattern. Is the Decorator pattern a good fit or are there different design patterns that would be a better fit for this problem.
Aucun commentaire:
Enregistrer un commentaire