addListener

public final B addListener(Listener<E> listener)

Adds a listener of the message posted to the bus being build.

When a message is posted to the bus, the listeners are notified before invoking filters.

If an exception is thrown by a listener code, it will be ignored by the bus.