I work on a project which has many different operations like file operations, registry operations, process operations, finding minimum requirements etc. All these classes are getting injected into one class , thereby, making it's coupling very high. I came across command pattern which seemed like a good idea for this project. But my operations take different parameters and have different return types. Command pattern had only one execute method with void as return type. Is there a way I can use this pattern for this project to reduce coupling or should I use some other design pattern?
Aucun commentaire:
Enregistrer un commentaire