Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@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