zero.core.events.dispatcher

Class OneDispatcher

public class OneDispatcher
extends zero.core.events.dispatcher.EventDispatcher

OneDispatcher overrides the behavior of its parent class to ensure that only one handler is executed for a given event, regardless of how many are registered. It differs from OneOrNoneDispatcher because it will raise an exception if no handlers are found for an event.

Field Summary

static OneDispatcher INSTANCE

Constructor

OneDispatcher()

Method Summary

boolean invoke(HandlerInfo handlerInfo)
List<HandlerData> resolveHandlers(List<HandlerData> configuredHandlers, Map<String,? extends Object> eventData)