/** * A helper method that delegates the publishing of events to the <tt>EventPublisher</tt>. * * @param changeStateEvent The event to publish to all listeners. */ protected void publish(ChangeStateEvent changeStateEvent) { eventPublisher.publishEvent(changeStateEvent); }
/** * Registers the event listeners for the given configurator. * * @param configurator the configurator whose events will be fired * @param eventListeners the event listeners which will be notified of the events */ public void registerEventListeners(String configurator, EventListener... eventListeners) { eventPublisher.addListeners(eventListeners); }