I am writing an application that uses an object called ACTION. Normally an object contains both the logic (ex. methods) and properties but I am trying to split the logic from my objects.
For implementing the logic, I would like to use managers instead to work with my object, so at a later time I can switch the implementation of the manager through using dependency injection. In my example I am using an ActionManager to interact with the ACTION object.
Is there a certain pattern which defines this setup? Or are there examples which uses this approach?
Aucun commentaire:
Enregistrer un commentaire