From 6d5776705481933d1bf3d2a1736f8e63b0f80364 Mon Sep 17 00:00:00 2001 From: chiba Date: Sat, 1 Jul 2006 02:13:08 +0000 Subject: updated javadoc comments. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@285 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/main/javassist/URLClassPath.java | 14 +++++++++++--- 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 { * *

This search path is used only if a requested * class name starts with the name specified by packageName. - * If packageName is "mypack" and a requested class is - * "mypack.sub.Test", then the given URL is used for loading that class. - * If packageName is null, the URL is used + * If packageName is "org.javassist" and a requested class is + * "org.javassist.test.Main", then the given URL is used for loading that class. + * The URLClassPath obtains a class file from: + * + *

+ * + *

Here, we assume that host is "www.javassist.org", + * port is 80, and directory is "/java/classes/". + * + *

If packageName is null, 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);

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 org.javassist. +package org.javassist. For example, to load a class +org.javassist.test.Main, its class file will be obtained from: + +

Furthermore, you can directly give a byte array to a ClassPool object -- cgit v1.2.3