Created
September 16, 2011 20:20
-
-
Save pmuir/1223042 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Decorates | |
abstract class BarEventDecorator implements Event<Bar>{ | |
@Inject @Delegate @Baz Event<Bar> d; | |
void fire(Bar bar) { | |
d.fire(bar); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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