JAVA

Guava EventBus

Article by:
Date Published:
Last Modified:

Overview

The Guava EventBus is a Java library owned by Google. It is a event broadcasting system which implements an event/listener pattern.

Advantages

  • Provides a mechanism for loose coupling between objects.

Disadvantages

  • 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

Exceptions thrown by event handlers will not be caught by the function which called eventBus.post().

Exception support has been discussed in Issue 766 in the Guava GitHub repository.


Authors

Geoffrey Hunter

Dude making stuff.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License .

Tags

comments powered by Disqus