Class 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 Detail

      • ClassLoadingUtil

        public ClassLoadingUtil()
        Creates a new instance.
    • Method Detail

      • 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 name
        aProject - the project where the class resides
        Returns:
        the loaded class
        Throws:
        ClassNotFoundException