1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.jdiagnose.config;
17
18 import java.util.EventObject;
19
20 /***
21 * @author jmccrindle
22 */
23 public class ConfigChangeEvent extends EventObject {
24
25 private Config configuration;
26 private String key;
27 private Object oldValue;
28 private Object newValue;
29
30 /***
31 * @param source
32 */
33 public ConfigChangeEvent(Object source, Config configuration, String key, Object oldValue, Object newValue) {
34 super(source);
35 this.configuration = configuration;
36 this.key = key;
37 this.oldValue = oldValue;
38 this.newValue = newValue;
39 }
40
41
42 public Config getConfiguration() {
43 return configuration;
44 }
45 public String getKey() {
46 return key;
47 }
48 public Object getNewValue() {
49 return newValue;
50 }
51 public Object getOldValue() {
52 return oldValue;
53 }
54 }