org.mockcentral.editor
Class ClassLoaderBuilder
java.lang.Object
org.mockcentral.editor.ClassLoaderBuilder
public class ClassLoaderBuilder
- extends java.lang.Object
The MockCentral plugin editor class used to build the
ClassLoader for the MockCentralApplication. This
class constructs a URLClassLoader making use of the various
classpath entries defined in the host IJavaProject containing
the configuration file opened with the plugin editor. These entries will
include all output folders, dependent projects and libraries.
- Author:
- David Hutchinson
|
Method Summary |
static java.lang.ClassLoader |
buildClassLoader(org.eclipse.jdt.core.IJavaProject project,
boolean useParentClassLoader)
Builds and returns a new ClassLoader for the
MockCentralApplication. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassLoaderBuilder
public ClassLoaderBuilder()
buildClassLoader
public static java.lang.ClassLoader buildClassLoader(org.eclipse.jdt.core.IJavaProject project,
boolean useParentClassLoader)
- Builds and returns a new
ClassLoader for the
MockCentralApplication.
- Parameters:
project - the IJavaProject hosting the configuration
file opened with the plugin editor.useParentClassLoader - whether to include the current Thread's
context ClassLoader.
- Returns:
- a new
ClassLoader for the
MockCentralApplication.