You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I understand, you can use @EventBusListenerMethod on bean methods and they'll be invoked as long as the class registers itself to the event bus.
Wouldn't it be better if that was transparent for Spring Beans? If you look at @EventListener in Spring Framework, all you have to do is place the annotation on a bean method. The code that gets the beans from the context and introspects them is here
Let me know if I can help.
The text was updated successfully, but these errors were encountered:
I like this idea. One problem is to know which event bus to subscribe to, since there are different event buses with different scopes. Maybe you could match the scope of the listener with the scope of the event bus?
As far as I understand, you can use
@EventBusListenerMethod
on bean methods and they'll be invoked as long as the class registers itself to the event bus.Wouldn't it be better if that was transparent for Spring Beans? If you look at
@EventListener
in Spring Framework, all you have to do is place the annotation on a bean method. The code that gets the beans from the context and introspects them is hereLet me know if I can help.
The text was updated successfully, but these errors were encountered: