Skip to content

Instantly share code, notes, and snippets.

@jonnyreeves
Created October 19, 2011 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonnyreeves/1297898 to your computer and use it in GitHub Desktop.
Save jonnyreeves/1297898 to your computer and use it in GitHub Desktop.
// I'm not a great fan of this as it violates the Law of Demeter.
facade.registerMediator(new BalanceDisplayMediator(appView.profileDisplay.balanceComponent));
facade.registerMediator(new ProfileDisplayMediator(appView.profileDisplay));
// Perhaps it's better to register the 'BalanceDisplayMediator' inside the 'ProfileDisplayMediator' instead? :S
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment