|
|
|
Re: IEventBroker without data [message #822825 is a reply to message #822222] |
Sat, 17 March 2012 10:18 |
Eclipse User |
|
|
|
Beat Schaller wrote on Fri, 16 March 2012 12:16Hi
and to get this messages like:
@Inject
void eventReceived(@Optional @UIEventTopic(Events.PRODUCER_INITIALIZED)) {
// i am in this method only if I get an event!
}
You HAVE to have a parameter because that parameter is actually being annotated. In the snippet above the annotations do not annotate anything. One way would be to move those annotations to the method itself and to overload the post and send methods of the event broker to support just one argument. Also if I remember correctly the annotation itself (uieventtopic) doesn't support method annotation.
If I got you correctly than I believe it is too much of a change just avoid a null check, however tedious it might be.
Sopot
|
|
|
|
Powered by
FUDForum. Page generated in 0.03524 seconds