public final class ClassLoaderBuilder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ClassLoaderBuilder.JarFileFilter
Filters jar files
|
| Modifier and Type | Field and Description |
|---|---|
static int |
USE_CLASSPATH_LIB
Load the Servlet code from the WAR file and use the current classpath for
the libraries.
|
static int |
USE_RED5_LIB
Load the servlet code from the WAR file and try to find the libraries in
the common red5 lib directory.
|
static int |
USE_WAR_LIB
Load the servlet code and the libraries from the WAR file.
|
| Constructor and Description |
|---|
ClassLoaderBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static ClassLoader |
build()
Default build uses Red5 common lib without a parent classloader.
|
static ClassLoader |
build(File path,
int mode,
ClassLoader parent)
Gets a class loader based on mode.
|
public static final int USE_CLASSPATH_LIB
public static final int USE_RED5_LIB
public static final int USE_WAR_LIB
public static ClassLoader build()
public static ClassLoader build(File path, int mode, ClassLoader parent)
path - the directory or file containing classesmode - the mode in which the servlet should be loaded. The possible
values are USE_CURRENT_CLASSPATH,
USE_CLASSPATH_LIB, USE_XINS_LIB,
USE_WAR_LIB.parent - the parent class loader or null if you want the current threads
class loaderCopyright © 2006-2012 The Red5 Project