org.apache.catalina.startup

Class ClassLoaderFactory


public final class ClassLoaderFactory
extends java.lang.Object

Utility class for building class loaders for Catalina. The factory method requires the following parameters in order to build a new class loader (with suitable defaults in all cases):

Version:
$Revision: 1.6.2.1 $ $Date: 2004/08/24 17:53:52 $

Author:
Craig R. McClanahan

Method Summary

static ClassLoader
createClassLoader(unpacked[] , packed[] , ClassLoader parent)
Create and return a new class loader, based on the configuration defaults and the specified directory paths:
static ClassLoader
createClassLoader(unpacked[] , packed[] , urls[] , ClassLoader parent)
Create and return a new class loader, based on the configuration defaults and the specified directory paths:
static int
getDebug()
Return the debugging detail level.
static void
setDebug(int newDebug)
Set the debugging detail level.

Method Details

createClassLoader

public static ClassLoader createClassLoader(unpacked[] ,
                                            packed[] ,
                                            ClassLoader parent)
            throws Exception
Create and return a new class loader, based on the configuration defaults and the specified directory paths:

Parameters:
parent - Parent class loader for the new class loader, or null for the system class loader.


createClassLoader

public static ClassLoader createClassLoader(unpacked[] ,
                                            packed[] ,
                                            urls[] ,
                                            ClassLoader parent)
            throws Exception
Create and return a new class loader, based on the configuration defaults and the specified directory paths:

Parameters:
parent - Parent class loader for the new class loader, or null for the system class loader.


getDebug

public static int getDebug()
Return the debugging detail level.


setDebug

public static void setDebug(int newDebug)
Set the debugging detail level.

Parameters:
newDebug - The new debugging detail level


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.