Tag: mediator

  • How to implement Mediator pattern in Java?

    Let’s say you want to automate posting on social media. You want to update your twitter and blog feed automatically when you post on facebook. Similarly if you post on any other media, the other two media should get the feed automatically updated. Let’s represent this problem in Java. You can have a class for…