When an application use many objects and those objects are sharing their references on each other. These kind of situation is so hard to maintain.
This is the object sharing complexity.
In such a situation we can use the Design patter called Mediator. Using this design pattern it keep a Mediator class (Controller class) and it has reference to all above classes (Object1, Object2....), and All above object has reference to Mediator. Using that we can maintain Complex Object sharing scenarios.
This is after applying Mediator design pattern
No comments:
Post a Comment