|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
net.officefloor.eclipse.classpath.ProjectClassLoader
public class ProjectClassLoader
ClassLoader to load classes from a
IProject.
| Field Summary | |
|---|---|
static ClassLoader |
DEFAULT_CLASS_LOADER
Default ClassLoader. |
| Method Summary | |
|---|---|
static ProjectClassLoader |
create(org.eclipse.ui.IEditorPart editorPart)
Convenience method to create the ProjectClassLoader from the
input IEditorPart. |
static ProjectClassLoader |
create(org.eclipse.core.resources.IProject project)
Convenience method to create the ProjectClassLoader from an
IProject. |
static ProjectClassLoader |
create(org.eclipse.core.resources.IProject project,
ClassLoader parentClassLoader)
Initiates from the IProject with the parent ClassLoader. |
static ProjectClassLoader |
create(String[] classpath,
ClassLoader parentClassLoader)
Initiates from the specified class path. |
protected static URL |
createUrl(String path)
Creates the URL from the path. |
static ConfigurationItem |
findConfigurationItem(org.eclipse.ui.IEditorPart editorPart,
String path)
Convenience method to find a ConfigurationItem on the class path
of the project of the input IEditorPart. |
ConfigurationItem |
findConfigurationItem(String path)
Finds the ConfigurationItem. |
ConfigurationContext |
getConfigurationContext()
Obtains the ConfigurationContext. |
| Methods inherited from class java.net.URLClassLoader |
|---|
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
| Methods inherited from class java.security.SecureClassLoader |
|---|
defineClass, defineClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ClassLoader DEFAULT_CLASS_LOADER
ClassLoader.
| Method Detail |
|---|
public static ConfigurationItem findConfigurationItem(org.eclipse.ui.IEditorPart editorPart,
String path)
ConfigurationItem on the class path
of the project of the input IEditorPart.
editorPart - IEditorPart.path - Path to ConfigurationItem.
ConfigurationItem or null if not found.public static ProjectClassLoader create(org.eclipse.ui.IEditorPart editorPart)
ProjectClassLoader from the
input IEditorPart.
editorPart - IEditorPart.
ProjectClassLoader.public static ProjectClassLoader create(org.eclipse.core.resources.IProject project)
ProjectClassLoader from an
IProject.
project - IProject.
ProjectClassLoader.
public static ProjectClassLoader create(org.eclipse.core.resources.IProject project,
ClassLoader parentClassLoader)
IProject with the parent ClassLoader.
project - IProject.parentClassLoader - Parent ClassLoader.
ProjectClassLoader.
public static ProjectClassLoader create(String[] classpath,
ClassLoader parentClassLoader)
classpath - Class path.parentClassLoader - Parent ClassLoader.
ProjectClassLoader.public ConfigurationContext getConfigurationContext()
ConfigurationContext.
ConfigurationContext.public ConfigurationItem findConfigurationItem(String path)
ConfigurationItem.
path - Path of the ConfigurationItem.
ConfigurationItem or null if not found.protected static URL createUrl(String path)
URL from the path.
path - Path to create as a URL.
URL of the path or null if fails to create
the URL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||