Skip to content

Glossary: Software Design Patterns in Java

Event bus

Also written: EventBus

The subject in an observer setup: an object where listeners register with `on` and which calls them all with `emit` when an event happens. The code that emits an event doesn't need to know which listeners are registered.

Where the book teaches it

Related terms

ObserverListenerPublish/subscribe