1   package com.atlassian.config.lifecycle.events;
2   
3   /**
4    * <p>Base event for Atlassian Config's <em>legacy</em> events.</p>
5    * <p>New events might not want to tie themselves to this event which sole purpose is to keep some semblance of
6    * backward compatibility for those events that uses to extends Spring's
7    * {@code org.springframework.context.ApplicationEvent}</p>
8    */
9   abstract class ConfigEvent implements LifecycleEvent
10  {
11      private final Object source;
12      private long timestamp;
13  
14      public ConfigEvent(Object source)
15      {
16          this.source = source;
17          this.timestamp = System.currentTimeMillis();
18      }
19  
20      public Object getSource()
21      {
22          return source;
23      }
24  
25      public long getTimestamp()
26      {
27          return timestamp;
28      }
29  }