Package org.exoplatform.services.listener

Examples of org.exoplatform.services.listener.ListenerService.broadcast()


   {
      try
      {
         ListenerService listenerService =
            (ListenerService)portalContainer.getComponentInstanceOfType(ListenerService.class);
         listenerService.broadcast(eventName, portalContainer, event);
      }
      catch (Exception e)
      {
         log.warn("Cannot broadcast the event '" + eventName + "'", e);
      }
View Full Code Here


   {
      try
      {
         ListenerService listenerService =
            (ListenerService)portalContainer.getComponentInstanceOfType(ListenerService.class);
         listenerService.broadcast(eventName, portalContainer, event);
      }
      catch (Exception e)
      {
         log.warn("Cannot broadcast the event '" + eventName + "'", e);
      }
View Full Code Here

     */
    private <T extends EventObject> void broadcast(PortalContainer portalContainer, String eventName, T event) {
        try {
            ListenerService listenerService = (ListenerService) portalContainer
                    .getComponentInstanceOfType(ListenerService.class);
            listenerService.broadcast(eventName, portalContainer, event);
        } catch (Exception e) {
            log.warn("Cannot broadcast the event '" + eventName + "'", e);
        }
    }
}
View Full Code Here

     */
    private <T extends EventObject> void broadcast(PortalContainer portalContainer, String eventName, T event) {
        try {
            ListenerService listenerService = (ListenerService) portalContainer
                    .getComponentInstanceOfType(ListenerService.class);
            listenerService.broadcast(eventName, portalContainer, event);
        } catch (Exception e) {
            log.warn("Cannot broadcast the event '" + eventName + "'", e);
        }
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.