|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
com.ibm.di.loader.IDILoader
public class IDILoader
This class is responsible for loading classes from the jar files that are placed in the jars directory
| Constructor Summary | |
|---|---|
IDILoader()
Constructor for the IDILoader object |
|
| Method Summary | |
|---|---|
void |
addFiles(String path)
Add all files in the given path to our internal list of jar files |
void |
addInstalledComponent(String path)
Locate idi.inf in a jar file, and add it to the sysconfig String |
void |
addPackages(File path)
Add all files in the given path to our internal list of packages |
void |
cacheJarContents(String path)
Locate all classes in a jar file, and add the names to a local cache. |
protected Class |
findClass(String name)
Finds the specified class |
protected String |
findLibrary(String name)
Returns the absolute path name of a native library. |
protected URL |
findResource(String name)
Finds the resource with the given name. |
static List |
getInstalledPackages()
Returns the list of installed packages |
static String |
getModificationDate(String className)
Returns the time a class was modified |
String |
getPathForClass(String clsname)
Returns the path from which a class is/will be loaded. |
static String |
getSysConfig()
Returns the accumulated sysConfig ( concatenation of all the idi.inf files ). |
Class |
loadClassFromFile(String fileName)
|
static void |
main(String[] args)
The main program for the IDILoader class |
void |
run(String name,
String[] args)
Main processing method for the IDILoader object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IDILoader()
| Method Detail |
|---|
public static String getSysConfig()
public static String getModificationDate(String className)
className - the name of the class
public static List getInstalledPackages()
public String getPathForClass(String clsname)
public static void main(String[] args)
args - The command line argumentspublic void addFiles(String path)
path - The path of the file(s) to be addedpublic void addPackages(File path)
path - The path of the file(s) to be addedpublic void addInstalledComponent(String path)
path - The absolute path of the jar filepublic void cacheJarContents(String path)
path - The absolute path of the jar file
public void run(String name,
String[] args)
name - The class to load and call the main method in. If name == null, only build internal structuresargs - Parameters to pass to the main method in the named class
protected Class findClass(String name)
throws ClassNotFoundException
findClass in class ClassLoadername - The name of the class
ClassNotFoundException - If the class could not be foundprotected URL findResource(String name)
findResource in class ClassLoadername - The resource name
protected String findLibrary(String name)
findLibrary in class ClassLoadername - The library name
public Class loadClassFromFile(String fileName)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||