|
|||||||||||
| 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.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()
Default 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 installedConfigs |
void |
addInstalledXMLComponent(String path)
Locate tdi.xml in a jar file, and add it to the sysconfigs Vector |
void |
addPackages(File path)
Add all files in the given path to our internal list of packages |
static Vector<String> |
getAllSysConfigs()
Returns a Vector with all the idi.inf files. |
static List<String> |
getInstalledPackages()
Provide a list of all installed packages. |
static IDILoader |
getInstance()
Provide an instance of IDILoader. |
static String |
getModificationDate(String className)
Returns the time a class was modified |
String |
getPathForClass(String clsname)
Provides a path to a specified class. |
Class<?> |
loadClassFromFile(String fileName)
Load a Class from a .class file Try to avoid duplicate defining of classes by keeping a local cache, which maps from fileName to class. |
Class<?> |
loadClassFromFile(String path,
String className)
Locate all classes in a jar file, and define the classes found. |
| 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 IDILoader()
| Method Detail |
|---|
public static Vector<String> getAllSysConfigs()
public static String getModificationDate(String className)
className - the name of the class
public static List<String> getInstalledPackages()
public String getPathForClass(String clsname)
clsname - the name of the class which path to get
public 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 addInstalledXMLComponent(String path)
path - The absolute path of the jar filepublic static IDILoader getInstance()
public Class<?> loadClassFromFile(String fileName)
throws Exception
fileName - - The name of the .class file
Exception - if an internal error occurs.
public Class<?> loadClassFromFile(String path,
String className)
path - The absolute path of the jar file
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||