public class ClassloaderClasspathUriResolver extends java.lang.Object implements IClasspathUriResolver
Constructor and Description |
---|
ClassloaderClasspathUriResolver() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.common.util.URI |
findResourceOnClasspath(java.lang.ClassLoader classLoader,
org.eclipse.emf.common.util.URI classpathUri) |
org.eclipse.emf.common.util.URI |
resolve(java.lang.Object context,
org.eclipse.emf.common.util.URI classpathUri)
Locates a resource using a classloader.
|
public org.eclipse.emf.common.util.URI resolve(java.lang.Object context, org.eclipse.emf.common.util.URI classpathUri)
resolve
in interface IClasspathUriResolver
context
- the classloader to be used, or an object whose classloader is used.
If null, the context classloader of the current thread is used.public org.eclipse.emf.common.util.URI findResourceOnClasspath(java.lang.ClassLoader classLoader, org.eclipse.emf.common.util.URI classpathUri) throws java.net.URISyntaxException
java.net.URISyntaxException