|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.plugin.ResourceManager
class ResourceManager
Field Summary | |
---|---|
private FS |
cmdFS
. |
private FS |
confFS
. |
private List<File> |
dirs
. |
private static Logger |
log
. |
private static Pattern |
p
. |
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. |
(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
Constructor Detail |
---|
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |