|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.plugin.ResourceManager
public class ResourceManager
| Field Summary | |
|---|---|
private FS |
cmdFS
. |
private FS |
confFS
. |
private List<File> |
dirs
. |
private static Logger |
log
. |
private static Pattern |
p
. |
private static byte[] |
SEPARATOR
. |
| Constructor Summary | |
|---|---|
ResourceManager(FS cmdFS,
FS confFS)
|
|
| Method Summary | |
|---|---|
(package private) List<String> |
listResourceId(ResourceKind kind)
List the resources id for a specific resource kind. |
static Resource |
loadConf(File file)
|
(package private) Resource |
loadResource(String resourceId,
ResourceKind resourceKind)
Load a resource from the context. |
(package private) void |
refresh()
Refresh the fs system view. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final Pattern p
private static final Logger log
private final FS cmdFS
private final FS confFS
private volatile List<File> dirs
private static final byte[] SEPARATOR
| Constructor Detail |
|---|
ResourceManager(FS cmdFS,
FS confFS)
| Method Detail |
|---|
Resource loadResource(String resourceId,
ResourceKind resourceKind)
resourceId - the resource idresourceKind - the resource kind
List<String> listResourceId(ResourceKind kind)
kind - the resource kind
void refresh()
public static Resource loadConf(File file)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||