Dynamically loading external files [message #485753] |
Mon, 14 September 2009 15:51  |
Eclipse User |
|
|
|
I have written a (physics) modeling system that manages datasets, dataflow
and visualization dynamically. Third parties can write their own
data-processing and visualization classes and have them included in the
workflows. The external classes are loaded via reflection (i.e.
ClassForName and then classe.getConstructor(types).newInstance(args).
This all works fine as long as the class is within the jars that make up the
modeling system. But if the class is in some third party jar that the
modeling system has never seen before, then of course the classloader can't
find the class.
Is there a way to update the classpaths the classloader searches WITHOUT
recompiling or otherwise change the host modeling system?
TIA, Ric
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.12968 seconds