com.marringtons.file
Class ClassCache
java.lang.Object
com.marringtons.file.ClassCache
- public class ClassCache
- extends Object
This is a specialist classloader used by the Adept servlet system to load classes from more
sources than those provided my the standard class loader. It searches the datapath as well
as the classpath. In addition any entry on either jar, zip or directory can have a META-INF
directory with a PATH-BASE.TXT file entry. Each line in this file represents a root path. So,
of PATH-BASE.TXT has an item /com/marringtons, a class can be found as "com.marringtons.myClass"
or just "myClass".
- Author:
- Paul Marrington
- See Also:
Path
|
Method Summary |
static Class |
forName(String name)
Used to load a class from the cache or from the class/datapath if not already in use. |
forName
public static Class forName(String name)
throws ClassNotFoundException
- Used to load a class from the cache or from the class/datapath if not already in use.
- Parameters:
name - of class to retrieve
- Returns:
- class loaded
- Throws:
ClassNotFoundException
Copyright © 2005 Paul Marrington http://library.marringtons.com