Collaboration diagram for Sct.SearchClassLoader:
Public Member Functions | |
Class | loadClass (String name, Class[] prototype) throws ClassNotFoundException |
Static Public Member Functions | |
SearchClassLoader | instance () |
void | main (String[] args) |
void | find (String name) |
Private Member Functions | |
void | addToMap (String name, Class c, Class[] prototype) |
Class | findInMap (String name, Class[] prototype) |
boolean | checkClass (Class c, Class[] prototype) |
Class | findClassInParent (String name, Class[] prototype) |
Class | findClassInPackages (String name, Class[] prototype) |
Class | findClassInClassPath (String name, Class[] prototype) |
Class | findInDir (String fileName, String dirName, Class[] prototype) |
Class | findInDir (String fileName, String parentDir, File dir, Class[] prototype) |
Class | findInZipFile (String classFileName, String cpElement, Class[] prototype) |
Class | findInJarFile (String classFileName, String cpElement, Class[] prototype) |
Class | findInZipFile (ZipFile f, String classFileName, Class[] prototype) |
Private Attributes | |
HashMap | cache = new HashMap() |
Static Private Attributes | |
SearchClassLoader | loader = new SearchClassLoader() |
It caches results by the asked for name and prototype to improve performance.
Definition at line 24 of file SearchClassLoader.java.
|
Definition at line 125 of file SearchClassLoader.java. |