From 52a455616e4077b5b61823cb4765c02fc6866f9a Mon Sep 17 00:00:00 2001 From: chiba Date: Wed, 11 Jan 2006 06:06:30 +0000 Subject: restructred sub packages git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@233 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- sample/duplicate/DuplicatedObject.java | 2 +- sample/duplicate/Main.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sample/duplicate') diff --git a/sample/duplicate/DuplicatedObject.java b/sample/duplicate/DuplicatedObject.java index 5995abcc..7161493c 100644 --- a/sample/duplicate/DuplicatedObject.java +++ b/sample/duplicate/DuplicatedObject.java @@ -1,6 +1,6 @@ package sample.duplicate; -import javassist.reflect.*; +import javassist.tools.reflect.*; public class DuplicatedObject extends Metaobject { private DuplicatedObject backup; 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); } } -- cgit v1.2.3