|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
com.ibm.di.loader.DynamicClassLoader
public class DynamicClassLoader
This is a URL Class Loader that dynamically loads TDI Jars files and resources from the URLs specified. The difference with the pre-TDI 7.1 class loader is that this loader first lets the child find the specified class and then refer to its parent.
Constructor Summary | |
---|---|
DynamicClassLoader(java.net.URL[] urls)
Constructor |
|
DynamicClassLoader(java.net.URL[] urls,
java.lang.ClassLoader parent)
Constructor |
|
DynamicClassLoader(java.net.URL[] urls,
java.lang.ClassLoader parent,
java.net.URLStreamHandlerFactory factory)
Constructor |
Method Summary | |
---|---|
java.net.URL |
getResource(java.lang.String name)
|
protected java.lang.Class<?> |
loadClass(java.lang.String name,
boolean resolve)
|
protected static void |
scanDirectoryForJarsRecursively(java.io.File searchDir,
java.util.List<java.net.URL> bufferList)
Search for Jar files in the specified directory. |
Methods inherited from class java.net.URLClassLoader |
---|
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicClassLoader(java.net.URL[] urls)
urls
- the URLs from which to load classes and resourcespublic DynamicClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent)
urls
- the URLs from which to load classes and resourcesparent
- The parent class loader.public DynamicClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent, java.net.URLStreamHandlerFactory factory)
urls
- the URLs from which to load classes and resourcesparent
- The parent class loader.factory
- the URLStreamHandlerFactory to use when creating URLsMethod Detail |
---|
protected java.lang.Class<?> loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
public java.net.URL getResource(java.lang.String name)
getResource
in class java.lang.ClassLoader
protected static void scanDirectoryForJarsRecursively(java.io.File searchDir, java.util.List<java.net.URL> bufferList)
searchDir
- directory to search at.bufferList
- List to update with URLs of the Jars
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |