Ejemplo n.º 1
0
 public void onApplicationEvent(ApplicationEvent event) {
   try {
     threadPool.execute(new Worker(event));
   } catch (InterruptedException e) {
     logger.error("Failed to process event: " + event.toString(), e);
   }
 }
Ejemplo n.º 2
0
 @Override
 public void onApplicationEvent(ApplicationEvent event) {
   System.out.println("Event Name: " + event.toString());
   System.out.println("Event Source: " + event.getSource());
 }
Ejemplo n.º 3
0
 public void onApplicationEvent(ApplicationEvent event) {
   System.out.println(event.toString());
 }