|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ckkloverdos.resource.ResourseContextSkeleton
org.ckkloverdos.resource.FileResourceContext
public class FileResourceContext
Filesystem-based resource context.
| Constructor Summary | |
|---|---|
FileResourceContext(java.io.File root)
Constructs a new context that will try to resolve resources from the provided filesystem location (root). |
|
FileResourceContext(java.io.File[] roots)
Constructs a new context that will try to resolve resources from the provided filesystem locations (roots). |
|
FileResourceContext(java.io.File[] roots,
IResourceContext parent)
Constructs a new context that will try to resolve resources from the provided filesystem locations (roots). |
|
FileResourceContext(java.io.File root,
IResourceContext parent)
Constructs a new context that will try to resolve resources from the provided filesystem location (root). |
|
FileResourceContext(java.lang.String root)
Constructs a new context that will try to resolve resources from the provided filesystem location (root). |
|
| Method Summary | |
|---|---|
IResource |
getLocalResource(java.lang.String name)
Returns the resource with the given name, using only the underlying file roots to resolve it (the parent context is not consulted). |
java.lang.String |
toString()
|
void |
toStringAware(ToString ts)
|
| Methods inherited from class org.ckkloverdos.resource.ResourseContextSkeleton |
|---|
getParent, getResource, normalize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileResourceContext(java.io.File[] roots,
IResourceContext parent)
roots - parent - public FileResourceContext(java.io.File[] roots)
roots -
public FileResourceContext(java.io.File root,
IResourceContext parent)
root - parent - public FileResourceContext(java.io.File root)
root - public FileResourceContext(java.lang.String root)
root - | Method Detail |
|---|
public IResource getLocalResource(java.lang.String name)
getLocalResource in interface IResourceContextname -
EmptyResource.INSTANCE otherwise.public java.lang.String toString()
toString in class java.lang.Objectpublic void toStringAware(ToString ts)
toStringAware in interface IToStringAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||