diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-04-05 09:24:26 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-04-05 09:24:26 +0000 |
commit | f56bd9e72f3032f66241f864725f208e0df03839 (patch) | |
tree | 15074c6e93bc08dd0af9ec4dc207bf9822a3f7b4 /sample/evolve | |
parent | ed96cc41015dae453237abc3934c2570e770bf53 (diff) | |
download | javassist-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.java | 13 |
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);
}
}
|