Skip to content
Snippets Groups Projects
Commit 0b0a082b authored by Nils Christian Ehmke's avatar Nils Christian Ehmke
Browse files

Uploaded the new kieker-jar. Experimented with the classloading for the analysis.

parent 93266169
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -37,7 +37,7 @@ import kieker.analysis.AnalysisController; ...@@ -37,7 +37,7 @@ import kieker.analysis.AnalysisController;
* @author Nils Christian Ehmke * @author Nils Christian Ehmke
* @version 1.0 * @version 1.0
*/ */
public final class PluginClassLoader { public final class PluginClassLoader extends ClassLoader {
/** /**
* The singleton instance of this class. * The singleton instance of this class.
...@@ -103,7 +103,13 @@ public final class PluginClassLoader { ...@@ -103,7 +103,13 @@ public final class PluginClassLoader {
* @throws ClassNotFoundException * @throws ClassNotFoundException
* If a class with the given name could not be found. * If a class with the given name could not be found.
*/ */
@Override
public Class<?> loadClass(final String name) throws ClassNotFoundException { public Class<?> loadClass(final String name) throws ClassNotFoundException {
try {
return ClassLoader.getSystemClassLoader().loadClass(name);
} catch (ClassNotFoundException ex) {
/* Ignore exception. */
}
synchronized (this) { synchronized (this) {
/* Run through all available class loaders and try to find the correct class. */ /* Run through all available class loaders and try to find the correct class. */
final Iterator<URLClassLoader> classLoaderIter = this.classLoaders.values().iterator(); final Iterator<URLClassLoader> classLoaderIter = this.classLoaders.values().iterator();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment