aboutsummaryrefslogtreecommitdiffstats
path: root/sample/duplicate/Main.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2006-01-11 06:06:30 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2006-01-11 06:06:30 +0000
commit52a455616e4077b5b61823cb4765c02fc6866f9a (patch)
treea9f95d54cccee9e336a667043b4e958d30257064 /sample/duplicate/Main.java
parent5b8d2d6c7ab0102e8a1bb0384cf769ed8f0f34da (diff)
downloadjavassist-52a455616e4077b5b61823cb4765c02fc6866f9a.tar.gz
javassist-52a455616e4077b5b61823cb4765c02fc6866f9a.zip
restructred sub packages
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@233 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'sample/duplicate/Main.java')
-rw-r--r--sample/duplicate/Main.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/sample/duplicate/Main.java b/sample/duplicate/Main.java
index e152a23e..064f13cd 100644
--- a/sample/duplicate/Main.java
+++ b/sample/duplicate/Main.java
@@ -3,7 +3,7 @@ package sample.duplicate;
/*
Runtime metaobject (JDK 1.2 or later only).
- With the javassist.reflect package, the users can attach a metaobject
+ With the javassist.tools.reflect package, the users can attach a metaobject
to an object. The metaobject can control the behavior of the object.
For example, you can implement fault tolerancy with this ability. One
of the implementation techniques of fault tolernacy is to make a copy
@@ -30,15 +30,15 @@ package sample.duplicate;
% java sample.duplicate.Main
You would see two balls in a window. This is because
- sample.duplicate.Viewer is loaded by javassist.reflect.Loader so that
+ sample.duplicate.Viewer is loaded by javassist.tools.reflect.Loader so that
a metaobject would be attached.
*/
public class Main {
public static void main(String[] args) throws Throwable {
- javassist.reflect.Loader cl = new javassist.reflect.Loader();
+ javassist.tools.reflect.Loader cl = new javassist.tools.reflect.Loader();
cl.makeReflective("sample.duplicate.Ball",
"sample.duplicate.DuplicatedObject",
- "javassist.reflect.ClassMetaobject");
+ "javassist.tools.reflect.ClassMetaobject");
cl.run("sample.duplicate.Viewer", args);
}
}