|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IResourceContext
Represents a context where resources may live. Class loaders and file systems provide two such (overlapping actually) contexts.
Contexts may form hierarchies (trees), as designated by thegetParent()
method. Resources are first resolved locally in a context, and if not found then
the parent context is consulted.
FileResourceContext
,
ClassLoaderResourceContext
Method Summary | |
---|---|
IResource |
getLocalResource(java.lang.String name)
Returns the resource with the given name that lives in this context, without consulting the parent context on failure. |
IResourceContext |
getParent()
Returns the parent context. |
IResource |
getResource(java.lang.String name)
Returns the resource with the given name or null if not found either in this context or in the parent context. |
Method Detail |
---|
IResourceContext getParent()
IResource getResource(java.lang.String name)
name
-
EmptyResource.INSTANCE
otherwise.IResource getLocalResource(java.lang.String name)
name
-
EmptyResource.INSTANCE
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |