blob: fdf25088db4aec69bf06e02d799a6f5d9b7e12f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
package com.c2kernel.process.resource;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import com.c2kernel.common.InvalidDataException;
import com.c2kernel.common.ObjectNotFoundException;
public interface ResourceLoader {
public URL getKernelBaseURL();
public URL getKernelResourceURL(String resName)
throws MalformedURLException;
public void addModuleBaseURL(String ns, URL newBaseURL);
public void addModuleBaseURL(String ns, String newBaseURL)
throws InvalidDataException;
public HashMap<String, URL> getModuleBaseURLs();
public URL getModuleResourceURL(String ns, String resName)
throws MalformedURLException;
/**************************************************************************
* Gets any text resource files
**************************************************************************/
public String findTextResource(String resName);
public HashMap<String, String> getAllTextResources(String resName);
public String getTextResource(String ns, String resName)
throws ObjectNotFoundException;
public Class<?> getClassForName(String name)
throws ClassNotFoundException;
}
|