org.eclipse.emf.mwe.core.resources
Class ResourceLoaderDefaultImpl

java.lang.Object
  extended by org.eclipse.emf.mwe.core.resources.AbstractResourceLoader
      extended by org.eclipse.emf.mwe.core.resources.ResourceLoaderDefaultImpl
All Implemented Interfaces:
ResourceLoader
Direct Known Subclasses:
ProjectIncludingResourceLoader, ResourceLoaderImpl

public class ResourceLoaderDefaultImpl
extends AbstractResourceLoader


Constructor Summary
ResourceLoaderDefaultImpl()
           
 
Method Summary
 java.net.URL getResource(java.lang.String path)
           
 java.io.InputStream getResourceAsStream(java.lang.String path)
           
 java.lang.Class<?> loadClass(java.lang.String clazzName)
           
protected  java.lang.Class<?> tryLoadClass(java.lang.String clazzName)
           
 
Methods inherited from class org.eclipse.emf.mwe.core.resources.AbstractResourceLoader
internalLoadClass, loadFromContextClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLoaderDefaultImpl

public ResourceLoaderDefaultImpl()
Method Detail

getResourceAsStream

public final java.io.InputStream getResourceAsStream(java.lang.String path)
Specified by:
getResourceAsStream in interface ResourceLoader
Overrides:
getResourceAsStream in class AbstractResourceLoader
Parameters:
path - Identifier for a resource
Returns:
InputStream for the specified resource.

loadClass

public final java.lang.Class<?> loadClass(java.lang.String clazzName)
Specified by:
loadClass in interface ResourceLoader
Overrides:
loadClass in class AbstractResourceLoader
Parameters:
clazzName - The class name
Returns:
The class instance or null if no such class could be found

getResource

public final java.net.URL getResource(java.lang.String path)
Specified by:
getResource in interface ResourceLoader
Overrides:
getResource in class AbstractResourceLoader

tryLoadClass

protected java.lang.Class<?> tryLoadClass(java.lang.String clazzName)
                                   throws java.lang.ClassNotFoundException
Specified by:
tryLoadClass in class AbstractResourceLoader
Throws:
java.lang.ClassNotFoundException