1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package ch.qos.logback.classic.joran;
16
17 import ch.qos.logback.core.spi.ConfigurationEvent;
18 import ch.qos.logback.core.spi.ConfigurationEventListener;
19
20 public class ROCConfigurationEventListener implements ConfigurationEventListener {
21 ReconfigureOnChangeTask reconfigureOnChangeTask;
22
23 @Override
24 public void listen(ConfigurationEvent configurationEvent) {
25 switch(configurationEvent.getEventType()) {
26 case CHANGE_DETECTED:
27 Object data = configurationEvent.getData();
28 if(data instanceof ReconfigureOnChangeTask) {
29 reconfigureOnChangeTask = (ReconfigureOnChangeTask) data;
30 } else {
31
32 }
33 break;
34 default:
35 }
36 }
37 }