Package de.gebit.integrity.ui.utils
Class ClassLoadingUtil
- java.lang.Object
-
- de.gebit.integrity.ui.utils.ClassLoadingUtil
-
public final class ClassLoadingUtil extends Object
A utility class containing methods to dynamically load classes into the eclipse workspace JVM.- Author:
- Rene Schneider - initial API and implementation
-
-
Constructor Summary
Constructors Constructor Description ClassLoadingUtil()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()Finalizes an instance.Class<?>loadClassFromWorkspace(String aClassName, org.eclipse.jdt.core.IJavaProject aProject)Loads a class defined in a specific project into the Eclipse JVM.
-
-
-
Method Detail
-
finalize
protected void finalize() throws ThrowableFinalizes an instance.
-
loadClassFromWorkspace
public Class<?> loadClassFromWorkspace(String aClassName, org.eclipse.jdt.core.IJavaProject aProject) throws ClassNotFoundException
Loads a class defined in a specific project into the Eclipse JVM.- Parameters:
aClassName- the fully qualified class nameaProject- the project where the class resides- Returns:
- the loaded class
- Throws:
ClassNotFoundException
-
-