|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.catalina.startup.ClassLoaderFactory
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):
ClassLoader
instance that should become the parent of
the new class loader.
Constructor Summary | |
ClassLoaderFactory()
|
Method Summary | |
static java.lang.ClassLoader |
createClassLoader(java.io.File[] unpacked,
java.io.File[] packed,
java.lang.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 java.lang.String[] |
getTriggers()
Return the trigger class names that we check for. |
static void |
setDebug(int newDebug)
Set the debugging detail level. |
static void |
setTriggers(java.lang.String[] newTriggers)
Set the trigger class names that we check for. |
static boolean |
validateDirectory(java.io.File directory)
Check the specified directory, and return true if it does
not contain any of the trigger classes. |
static boolean |
validateJarFile(java.io.File jarfile)
Check the specified JAR file, and return true if it does
not contain any of the trigger classes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassLoaderFactory()
Method Detail |
public static int getDebug()
public static void setDebug(int newDebug)
newDebug
- The new debugging detail levelpublic static java.lang.String[] getTriggers()
public static void setTriggers(java.lang.String[] newTriggers)
newTriggers
- The new trigger class namespublic static java.lang.ClassLoader createClassLoader(java.io.File[] unpacked, java.io.File[] packed, java.lang.ClassLoader parent) throws java.lang.Exception
unpacked
- Array of pathnames to unpacked directories that should
be added to the repositories of the class loader unless they contain
one of the trigger classes, or null
for no unpacked
directories to be consideredpacked
- Array of pathnames to directories containing JAR files
that should be added to the repositories of the class loader unless
they contain one of the trigger classes, or null
for no
directories of JAR files to be consideredparent
- Parent class loader for the new class loader, or
null
for the system class loader.java.lang.Exception
- if an error occurs constructing the class loaderpublic static boolean validateDirectory(java.io.File directory) throws java.io.IOException
true
if it does
not contain any of the trigger classes.directory
- The directory to be checkedjava.io.IOException
- if an input/output error occurspublic static boolean validateJarFile(java.io.File jarfile) throws java.io.IOException
true
if it does
not contain any of the trigger classes.jarfile
- The JAR file to be checkedjava.io.IOException
- if an input/output error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |