File packed[],
ClassLoader parent)
throws Exception {
- return createClassLoader(unpacked, packed, null, parent);
- }
-
-
- /**
- * Create and return a new class loader, based on the configuration
- * defaults and the specified directory paths:
- *
- * @param unpacked Array of pathnames to unpacked directories that should
- * be added to the repositories of the class loader, or <code>null</code>
- * for no unpacked directories to be considered
- * @param packed Array of pathnames to directories containing JAR files
- * that should be added to the repositories of the class loader,
- * or <code>null</code> for no directories of JAR files to be considered
- * @param urls Array of URLs to remote repositories, designing either JAR
- * resources or uncompressed directories that should be added to
- * the repositories of the class loader, or <code>null</code> for no
- * directories of JAR files to be considered
- * @param parent Parent class loader for the new class loader, or
- * <code>null</code> for the system class loader.
- *
- * @exception Exception if an error occurs constructing the class loader
- */
- public static ClassLoader createClassLoader(File unpacked[],
- File packed[],
- URL urls[],
- ClassLoader parent)
- throws Exception {
if (log.isDebugEnabled())
log.debug("Creating new class loader");