the IDILoader class is an extension of java.net.URLClassLoader, which basically
only has a method to add more URLs at the end of the search list. You cannot add
new jars at the beginning of the list, or remove URLs.
You can dynamically add new jar files at the end of list using e.g.
But I think you already tried that, and needs something even more dynamic.
You could probably do something similar to what you want with some creative
AssemblyLine should use. Something like this in the Prolog - Before Init of an
AssemblyLine, or wherever you want to change the loader:
currentLoader = task.getContextClassLoader();
newLoader = new com.ibm.di.loader.DynamicClassLoader([new java.net.URL("file:/home/jens/7.2/a.jar")], currentLoader);
Since newLoader would be AssemblyLine specific, maybe you would not need to remove the jar files from the loader later, other AssemblyLines would not
see or use the newLoader. But you could also at any time in the AssemblyLine
reset the loader by using
DynamicClassLoader needs an array of URLs as the first parameter, and searches
that array before using the parent loader.