-
Notifications
You must be signed in to change notification settings - Fork 510
/
ReloadEventProcessorPlugin1.java
38 lines (31 loc) · 1.44 KB
/
ReloadEventProcessorPlugin1.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*******************************************************************************
* Copyright (c) 2011 SpringSource. All rights reserved.
*******************************************************************************/
package com.test.plugins;
import org.springsource.loaded.ReloadEventProcessorPlugin;
import org.springsource.loaded.TypeDelta;
import org.springsource.loaded.UnableToReloadEventProcessorPlugin;
/**
*
* @author Andy Clement
* @since 0.7.2
*/
public class ReloadEventProcessorPlugin1 implements ReloadEventProcessorPlugin, UnableToReloadEventProcessorPlugin {
public ReloadEventProcessorPlugin1() {
System.out.println("Instantiated ReloadEventProcessorPlugin1");
}
public void reloadEvent(String typename, Class<?> clazz, String encodedTimestamp) {
System.out.println("ReloadEventProcessorPlugin1: reloadEvent(" + typename + "," + clazz.getName() + "," + encodedTimestamp
+ ")");
}
public void unableToReloadEvent(String typename, Class<?> clazz, TypeDelta typeDelta, String encodedTimestamp) {
System.out.println("ReloadEventProcessorPlugin1: unableToReloadEvent(" + typename + "," + clazz.getName() + ","
+ encodedTimestamp + ")");
}
@Override
public boolean shouldRerunStaticInitializer(String typename, Class<?> clazz, String encodedTimestamp) {
System.out.println("ReloadEventProcessorPlugin1: shouldRerunStaticInitializer(" + typename + "," + clazz.getName() + ","
+ encodedTimestamp + ")");
return false;
}
}