aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/ClassPool.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-11-08 10:45:41 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-11-08 10:45:41 +0000
commit5ff19d5945cda4b3d554e79d726e8a19de9c5766 (patch)
tree9ca1aec6600b1f4eedfbcac5aa031d6c9f49bbe5 /src/main/javassist/ClassPool.java
parent65e6ac84216e2e4e0deeef70602b50d9a9b62c6c (diff)
downloadjavassist-5ff19d5945cda4b3d554e79d726e8a19de9c5766.tar.gz
javassist-5ff19d5945cda4b3d554e79d726e8a19de9c5766.zip
appended ClassPool(boolean) constructor.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@220 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/ClassPool.java')
-rw-r--r--src/main/javassist/ClassPool.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/javassist/ClassPool.java b/src/main/javassist/ClassPool.java
index bb90da88..35b92f93 100644
--- a/src/main/javassist/ClassPool.java
+++ b/src/main/javassist/ClassPool.java
@@ -123,6 +123,21 @@ public class ClassPool {
}
/**
+ * Creates a root class pool. If <code>useDefaultPath</code> is
+ * true, <code>appendSystemPath()</code> is called. Otherwise,
+ * this constructor is equivalent to the constructor taking no
+ * parameter.
+ *
+ * @param useDefaultPath true if the system search path is
+ * appended.
+ */
+ public ClassPool(boolean useDefaultPath) {
+ this(null);
+ if (useDefaultPath)
+ appendSystemPath();
+ }
+
+ /**
* Creates a class pool.
*
* @param parent the parent of this class pool. If this is a root