public class ResourceManager extends Object
Modifier and Type | Field and Description |
---|---|
private FS |
cmdFS
.
|
private FS |
confFS
.
|
private List<File> |
dirs
.
|
private static Logger |
log
.
|
private static Pattern |
p
.
|
private static byte[] |
SEPARATOR
.
|
Constructor and Description |
---|
ResourceManager(FS cmdFS,
FS confFS) |
Modifier and Type | Method and Description |
---|---|
(package private) Iterable<String> |
listResourceId(ResourceKind kind)
List the resources id for a specific resource kind.
|
static Resource |
loadConf(File file) |
(package private) Iterable<Resource> |
loadResource(String resourceId,
ResourceKind resourceKind)
Load a resource from the context.
|
(package private) void |
refresh()
Refresh the fs system view.
|
private static final byte[] SEPARATOR
ResourceManager(FS cmdFS, FS confFS)
Iterable<Resource> loadResource(String resourceId, ResourceKind resourceKind)
resourceId
- the resource idresourceKind
- the resource kindIterable<String> listResourceId(ResourceKind kind)
kind
- the resource kindvoid refresh()
public static Resource loadConf(File file) throws IOException
IOException
Copyright © 2015 eXo Platform SAS. All Rights Reserved.