aboutsummaryrefslogtreecommitdiffstats
path: root/sample/evolve
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-04-05 09:24:26 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-04-05 09:24:26 +0000
commitf56bd9e72f3032f66241f864725f208e0df03839 (patch)
tree15074c6e93bc08dd0af9ec4dc207bf9822a3f7b4 /sample/evolve
parented96cc41015dae453237abc3934c2570e770bf53 (diff)
downloadjavassist-f56bd9e72f3032f66241f864725f208e0df03839.tar.gz
javassist-f56bd9e72f3032f66241f864725f208e0df03839.zip
changed the stuff related to ClassPool.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@76 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'sample/evolve')
-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);
}
}