The Guava EventBus is a Java library owned by Google. It is a event broadcasting system which implements an event/listener pattern.
- Provides a mechanism for loose coupling between objects.
- No returns codes/status/exceptions can be returned from
eventBus.post(). This is an advantage that the observer pattern has over an event bus, as it can return values/catch exceptions.
Exceptions thrown by event handlers will not be caught by the function which called
Exception support has been discussed in Issue 766 in the Guava GitHub repository.