Examples of IApplicationNotification


Examples of org.fenrir.yggdrasil.core.event.IApplicationNotification

                      log.debug("S'han trobat {} components per actualitzar", artifactDescriptors.size());
                  }
                 
                  updateService.createActionsFile(artifactDescriptors);
 
                  IApplicationNotification notification = (IApplicationNotification)ApplicationContext.getInstance().getRegisteredComponent(IApplicationNotification.class, NotificationEventConstants.NOTIFICATION_APPLICATION_UPDATED);
                  eventNotificationService.notifyNamedEvent(IApplicationNotificationListener.class,
                          IApplicationNotificationListener.EVENT_SINGLE_NOTIFICATION_ID, notification);               
              }                       
              else{
                  if(log.isDebugEnabled()){
                      log.debug("No s'han trobat noves actualitzacions per l'aplicació");
                  }
              }
            }
        }
        catch(Exception e){
            log.error("Error buscant actualitzacions de l'aplicació: {}", e.getMessage(), e);
           
            IApplicationNotification notification = (IApplicationNotification)ApplicationContext.getInstance().getRegisteredComponent(IApplicationNotification.class, NotificationEventConstants.NOTIFICATION_ERROR);
            notification.setMessage("Error a l'execució de la tasca d'actualització de l'aplicació");
            notification.setParameter(NotificationEventConstants.NOTIFICATION_PARAMETER_ERROR_DESCRIPTION, "Error a l'execució de la tasca d'actualització de l'aplicació");
            notification.setParameter(NotificationEventConstants.NOTIFICATION_PARAMETER_ERROR_THROWABLE, e);
            try{
                eventNotificationService.notifyNamedEvent(IApplicationNotificationListener.class,
                        IApplicationNotificationListener.EVENT_SINGLE_NOTIFICATION_ID, notification);
            }
            catch(Exception e2){
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.