Fork me on GitHub

Direct Interaction with the Event Broker

In cases where it does not make sense to register an instance on the event broker, you can directly fire events onto the event broker without a publisher. This is for example very useful with scheduled tasks. These tasks are created to perform some task and are then garbage collected. Therefore it would be overkill to register the tasks as a publisher, fire the event and then unregister the task and collect it.

You have to define the event topic that should be fired, the object used as the publisher (used by matchers and logging), the handler restriction, the sender of the event and the event arguments.