diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-01-11 06:06:30 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-01-11 06:06:30 +0000 |
commit | 52a455616e4077b5b61823cb4765c02fc6866f9a (patch) | |
tree | a9f95d54cccee9e336a667043b4e958d30257064 /sample/rmi | |
parent | 5b8d2d6c7ab0102e8a1bb0384cf769ed8f0f34da (diff) | |
download | javassist-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/rmi')
-rw-r--r-- | sample/rmi/CountApplet.java | 6 | ||||
-rw-r--r-- | sample/rmi/Counter.java | 2 | ||||
-rw-r--r-- | sample/rmi/start.html | 2 | ||||
-rw-r--r-- | sample/rmi/webdemo.html | 8 |
4 files changed, 9 insertions, 9 deletions
diff --git a/sample/rmi/CountApplet.java b/sample/rmi/CountApplet.java index 0bebdaf9..e4ee0ee2 100644 --- a/sample/rmi/CountApplet.java +++ b/sample/rmi/CountApplet.java @@ -3,9 +3,9 @@ package sample.rmi; import java.applet.*;
import java.awt.*;
import java.awt.event.*;
-import javassist.rmi.ObjectImporter;
-import javassist.rmi.ObjectNotFoundException;
-import javassist.web.Viewer;
+import javassist.tools.rmi.ObjectImporter;
+import javassist.tools.rmi.ObjectNotFoundException;
+import javassist.tools.web.Viewer;
public class CountApplet extends Applet implements ActionListener {
private Font font;
diff --git a/sample/rmi/Counter.java b/sample/rmi/Counter.java index f8a0fcf5..0920ca73 100644 --- a/sample/rmi/Counter.java +++ b/sample/rmi/Counter.java @@ -1,6 +1,6 @@ package sample.rmi;
-import javassist.rmi.AppletServer;
+import javassist.tools.rmi.AppletServer;
import java.io.IOException;
import javassist.CannotCompileException;
import javassist.NotFoundException;
diff --git a/sample/rmi/start.html b/sample/rmi/start.html index 696b629c..33321ad1 100644 --- a/sample/rmi/start.html +++ b/sample/rmi/start.html @@ -12,4 +12,4 @@ Start! <p>If you don't want to use a web browser, do as follows:
-<ul><pre>% java javassist.web.Viewer localhost 5001 sample.rmi.CountApplet</pre></ul>
+<ul><pre>% java javassist.tools.web.Viewer localhost 5001 sample.rmi.CountApplet</pre></ul>
diff --git a/sample/rmi/webdemo.html b/sample/rmi/webdemo.html index d313ec3c..a2b595ce 100644 --- a/sample/rmi/webdemo.html +++ b/sample/rmi/webdemo.html @@ -6,7 +6,7 @@ local object. The applet can communicate through a socket with the
host that executes the web server distributing that applet. However,
the applet cannot directly call a method on an object if the object is
-on a remote host. The <code>javassist.rmi</code> package provides
+on a remote host. The <code>javassist.tools.rmi</code> package provides
a mechanism for the applet to transparently access the remote object.
The rules that the applet must be subject to are simpler than the
standard Java RMI.
@@ -36,7 +36,7 @@ Look at the lines shown with red: <p><b>Figure 1: Applet</b>
<pre>
-<font color="red">import javassist.rmi.ObjectImporter;</font>
+<font color="red">import javassist.tools.rmi.ObjectImporter;</font>
public class CountApplet extends Applet implements ActionListener {
private Font font;
@@ -106,7 +106,7 @@ public class Counter { }
</pre>
-<p>Note that the <code>javassist.rmi</code> package does not require
+<p>Note that the <code>javassist.tools.rmi</code> package does not require
the <code>Counter</code> class to be an interface unlike the Java RMI,
with which <code>Counter</code> must be an interface and it must be
implemented by another class.
@@ -167,7 +167,7 @@ following features: <p> With the Java RMI or Voyager, the applet programmer must define
an interface for every remote object class and access the remote object
through that interface.
-On the other hand, the <code>javassist.rmi</code> package does not
+On the other hand, the <code>javassist.tools.rmi</code> package does not
require the programmer to follow that programming convention.
It is suitable for writing simple distributed programs like applets.
|