@Override public void run() { if (log.isDebugEnabled()) { log.debug("Executing " + module.getModuleName() + " on event" + event. getEventName()); } try { module.sendMessage(event); } catch (NotificationManagementException e) { log.error("Error while invoking notification sending module " + module. getModuleName(), e); } } };
/** * This method is called from all service consumers of this bundle, whenever messageSendingModules need to be * fired. This method will check whether the registered message sending modules can handle the event type and if * can, it will invoke sendMessage * * @param event Publisher event * @throws NotificationManagementException */ public void invoke(PublisherEvent event) throws NotificationManagementException { if (event == null) { throw new NotificationManagementException("No publisher event found to send notification"); } if (log.isDebugEnabled()) { log.debug("Adding event to the event queue " + event.getEventName()); } eventDistributionTask.addEventToQueue(event); }
/** * This method is called from all service consumers of this bundle, whenever messageSendingModules need to be * fired. This method will check whether the registered message sending modules can handle the event type and if * can, it will invoke sendMessage * * @param event Publisher event * @throws NotificationManagementException */ public void invoke(PublisherEvent event) throws NotificationManagementException { if (event == null) { throw new NotificationManagementException("No publisher event found to send notification"); } if (log.isDebugEnabled()) { log.debug("Adding event to the event queue " + event.getEventName()); } eventDistributionTask.addEventToQueue(event); }
@Override public void run() { if (log.isDebugEnabled()) { log.debug("Executing " + module.getModuleName() + " on event" + event. getEventName()); } try { module.sendMessage(event); } catch (NotificationManagementException e) { log.error("Error while invoking notification sending module " + module. getModuleName(), e); } } };
/** * This method is called from all service consumers of this bundle, whenever messageSendingModules need to be * fired. This method will check whether the registered message sending modules can handle the event type and if * can, it will invoke sendMessage * * @param event Publisher event * @throws NotificationManagementException */ public void invoke(PublisherEvent event) throws NotificationManagementException { if (event == null) { throw new NotificationManagementException("No publisher event found to send notification"); } if (log.isDebugEnabled()) { log.debug("Adding event to the event queue " + event.getEventName()); } eventDistributionTask.addEventToQueue(event); }
@Override public void run() { if (log.isDebugEnabled()) { log.debug("Executing " + module.getModuleName() + " on event" + event. getEventName()); } try { module.sendMessage(event); } catch (NotificationManagementException e) { log.error("Error while invoking notification sending module " + module. getModuleName(), e); } } };