Skip to content

Instantly share code, notes, and snippets.

@pmuir
Created September 16, 2011 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pmuir/1223042 to your computer and use it in GitHub Desktop.
Save pmuir/1223042 to your computer and use it in GitHub Desktop.
@Decorates
abstract class BarEventDecorator implements Event<Bar>{
@Inject @Delegate @Baz Event<Bar> d;
void fire(Bar bar) {
d.fire(bar);
}
}
class Foo {
@Inject Event<Bar> e;
void doIt() {
e.fire(new Bar());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment