aboutsummaryrefslogtreecommitdiffstats
path: root/sample/evolve/DemoLoader.java
diff options
context:
space:
mode:
Diffstat (limited to 'sample/evolve/DemoLoader.java')
-rw-r--r--sample/evolve/DemoLoader.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/sample/evolve/DemoLoader.java b/sample/evolve/DemoLoader.java
index 5fa950da..ecf45049 100644
--- a/sample/evolve/DemoLoader.java
+++ b/sample/evolve/DemoLoader.java
@@ -29,12 +29,13 @@ public class DemoLoader {
* updatable. Then it runs main() in sample.evolve.DemoServer.
*/
public static void main(String[] args) throws Throwable {
- Evolution translator = new Evolution();
- ClassPool cp = ClassPool.getDefault(translator);
- Loader cl = new Loader();
- cl.setClassPool(cp);
+ Evolution translator = new Evolution();
+ ClassPool cp = ClassPool.getDefault();
+ cp.insertTranslator(translator);
+ Loader cl = new Loader();
+ cl.setClassPool(cp);
- translator.makeUpdatable("sample.evolve.WebPage");
- cl.run("sample.evolve.DemoServer", args);
+ translator.makeUpdatable("sample.evolve.WebPage");
+ cl.run("sample.evolve.DemoServer", args);
}
}