Class AbstractResourceLoader
java.lang.Object
org.eclipse.emf.mwe.core.resources.AbstractResourceLoader
- All Implemented Interfaces:
ResourceLoader
- Direct Known Subclasses:
OsgiResourceLoader
,ResourceLoaderDefaultImpl
- Author:
- Sebastian Zarnekow - Initial contribution and API
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResource
(String path) getResourceAsStream
(String path) protected Class<?>
internalLoadClass
(String clazzName) Class<?>
protected URL
protected abstract Class<?>
tryLoadClass
(String clazzName)
-
Constructor Details
-
AbstractResourceLoader
public AbstractResourceLoader()
-
-
Method Details
-
tryLoadClass
- Throws:
ClassNotFoundException
-
getResourceAsStream
- Specified by:
getResourceAsStream
in interfaceResourceLoader
- Parameters:
path
- Identifier for a resource- Returns:
- InputStream for the specified resource.
-
loadClass
- Specified by:
loadClass
in interfaceResourceLoader
- Parameters:
clazzName
- The class name- Returns:
- The class instance or null if no such class could be found
-
internalLoadClass
- Throws:
ClassNotFoundException
-
getResource
- Specified by:
getResource
in interfaceResourceLoader
-
loadFromContextClassLoader
-