diff options
Diffstat (limited to 'src/main/javassist/URLClassPath.java')
-rw-r--r-- | src/main/javassist/URLClassPath.java | 14 |
1 files changed, 11 insertions, 3 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 |