public class Resource extends Object implements ResourceLoader
| Constructor and Description |
|---|
Resource() |
| Modifier and Type | Method and Description |
|---|---|
void |
addModuleBaseURL(String ns,
String newBaseURL) |
void |
addModuleBaseURL(String ns,
URL newBaseURL) |
String |
findTextResource(String resName) |
HashMap<String,String> |
getAllTextResources(String resName) |
Class<?> |
getClassForName(String name) |
ClassLoader |
getClassLoader(String className) |
URL |
getKernelBaseURL() |
URL |
getKernelResourceURL(String resName) |
HashMap<String,URL> |
getModuleBaseURLs() |
Enumeration<URL> |
getModuleDefURLs() |
URL |
getModuleResourceURL(String ns,
String resName) |
String |
getTextResource(String ns,
String resName) |
public Resource()
throws InvalidDataException
InvalidDataExceptionpublic URL getKernelBaseURL()
getKernelBaseURL in interface ResourceLoaderpublic ClassLoader getClassLoader(String className)
getClassLoader in interface ResourceLoaderpublic Class<?> getClassForName(String name) throws ClassNotFoundException
getClassForName in interface ResourceLoaderClassNotFoundExceptionpublic URL getKernelResourceURL(String resName) throws MalformedURLException
getKernelResourceURL in interface ResourceLoaderMalformedURLExceptionpublic void addModuleBaseURL(String ns, URL newBaseURL)
addModuleBaseURL in interface ResourceLoaderpublic void addModuleBaseURL(String ns, String newBaseURL) throws InvalidDataException
addModuleBaseURL in interface ResourceLoaderInvalidDataExceptionpublic HashMap<String,URL> getModuleBaseURLs()
getModuleBaseURLs in interface ResourceLoaderpublic URL getModuleResourceURL(String ns, String resName) throws MalformedURLException
getModuleResourceURL in interface ResourceLoaderMalformedURLExceptionpublic String findTextResource(String resName)
findTextResource in interface ResourceLoaderpublic HashMap<String,String> getAllTextResources(String resName)
getAllTextResources in interface ResourceLoaderpublic String getTextResource(String ns, String resName) throws ObjectNotFoundException
getTextResource in interface ResourceLoaderObjectNotFoundExceptionpublic Enumeration<URL> getModuleDefURLs() throws Exception
getModuleDefURLs in interface ResourceLoaderExceptionCopyright © 1997–2022 CRISTAL-iSE. All rights reserved.