|
|||||||||||
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(URL[] urls)
Constructor |
|
DynamicClassLoader(URL[] urls,
ClassLoader parent)
Constructor |
|
DynamicClassLoader(URL[] urls,
ClassLoader parent,
URLStreamHandlerFactory factory)
Constructor |
Method Summary | |
---|---|
URL |
getResource(String name)
|
protected Class<?> |
loadClass(String name,
boolean resolve)
|
protected static void |
scanDirectoryForJarsRecursively(File searchDir,
List<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.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicClassLoader(URL[] urls)
urls
- the URLs from which to load classes and resourcespublic DynamicClassLoader(URL[] urls, ClassLoader parent)
urls
- the URLs from which to load classes and resourcesparent
- The parent class loader.public DynamicClassLoader(URL[] urls, ClassLoader parent, 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 Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
public URL getResource(String name)
getResource
in class ClassLoader
protected static void scanDirectoryForJarsRecursively(File searchDir, List<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 |