Exemple #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);
   }
 }
 @Override
 public void onApplicationEvent(ApplicationEvent event) {
   System.out.println("Event Name: " + event.toString());
   System.out.println("Event Source: " + event.getSource());
 }
Exemple #3
0
 public void onApplicationEvent(ApplicationEvent event) {
   System.out.println(event.toString());
 }