diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-07-01 02:13:08 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2006-07-01 02:13:08 +0000 |
commit | 6d5776705481933d1bf3d2a1736f8e63b0f80364 (patch) | |
tree | c39efd1c4c298005cc31b5a222ce8ad5953ffe26 | |
parent | 046c30cb2f0bcd38bcd3839ee3dc1b50810c7ca1 (diff) | |
download | javassist-6d5776705481933d1bf3d2a1736f8e63b0f80364.tar.gz javassist-6d5776705481933d1bf3d2a1736f8e63b0f80364.zip |
updated javadoc comments.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@285 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r-- | src/main/javassist/URLClassPath.java | 14 | ||||
-rw-r--r-- | tutorial/tutorial.html | 6 |
2 files changed, 16 insertions, 4 deletions
diff --git a/src/main/javassist/URLClassPath.java b/src/main/javassist/URLClassPath.java index a9255ab0..0c220201 100644 --- a/src/main/javassist/URLClassPath.java +++ b/src/main/javassist/URLClassPath.java @@ -36,9 +36,17 @@ public class URLClassPath implements ClassPath { * * <p>This search path is used only if a requested * class name starts with the name specified by <code>packageName</code>. - * If <code>packageName</code> is "mypack" and a requested class is - * "mypack.sub.Test", then the given URL is used for loading that class. - * If <code>packageName</code> is <code>null</code>, the URL is used + * If <code>packageName</code> is "org.javassist" and a requested class is + * "org.javassist.test.Main", then the given URL is used for loading that class. + * The <code>URLClassPath</code> obtains a class file from: + * + * <ul><pre>http://www.javassist.org:80/java/classes/org/javassist/test/Main.class + * </pre></ul> + * + * <p>Here, we assume that <code>host</code> is "www.javassist.org", + * <code>port</code> is 80, and <code>directory</code> is "/java/classes/". + * + * <p>If <code>packageName</code> is <code>null</code>, the URL is used * for loading any class. * * @param host host name diff --git a/tutorial/tutorial.html b/tutorial/tutorial.html index b68677ee..8776d8f8 100644 --- a/tutorial/tutorial.html +++ b/tutorial/tutorial.html @@ -230,7 +230,11 @@ pool.insertClassPath(cp); <p>This program adds "http://www.javassist.org:80/java/" to the class search path. This URL is used only for searching classes belonging to a -package <code>org.javassist</code>. +package <code>org.javassist</code>. For example, to load a class +<code>org.javassist.test.Main</code>, its class file will be obtained from: + +<ul><pre>http://www.javassist.org:80/java/org/javassist/test/Main.class +</pre></ul> <p>Furthermore, you can directly give a byte array to a <code>ClassPool</code> object |