View Javadoc

1   package it.com.atlassian.event.spring;
2   
3   import com.atlassian.event.api.EventListener;
4   
5   /**
6    * Example event listener that uses the @EventListener annotation.
7    */
8   public class ExampleAnnotationBasedEventListener {
9       public ExampleEvent event;
10  
11      @EventListener
12      public void onEvent(ExampleEvent event) {
13          this.event = event;
14      }
15  
16      public void reset() {
17          this.event = null;
18      }
19  
20  }