|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectconsciouscode.util.resource.ClassLoaderResourceTree
ResourceTree interface. Specifically, one cannot
enumerate resources within a ClassLoader, or identify directories.
@Deprecated public class ClassLoaderResourceTree
A ResourceTree that reads resources from a ClassLoader.
| Constructor Summary | |
|---|---|
ClassLoaderResourceTree(String module,
ClassLoader loader)
Deprecated. |
|
ClassLoaderResourceTree(String module,
ClassLoader loader,
ResourceTreeProvider provider)
Deprecated. |
|
| Method Summary | |
|---|---|
Resource |
getResource(String path)
Deprecated. Returns information about a resource file. |
ResourceTreeProvider |
getResourceTreeProvider()
Deprecated. Gets the provider of this resource tree. |
URL |
getResourceUrl(String path)
Deprecated. Returns a URL to a resource file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassLoaderResourceTree(String module,
ClassLoader loader)
module - is the name of the module this layer is configuring.
It must not be null or empty.loader - must not be null.
public ClassLoaderResourceTree(String module,
ClassLoader loader,
ResourceTreeProvider provider)
module - is the name of the module this layer is configuring.
It must not be null or empty.loader - must not be null.| Method Detail |
|---|
public Resource getResource(String path)
ResourceTree
getResource in interface ResourceTreepath - identifies the desired resource.
null if no resource exists at the given path.public URL getResourceUrl(String path)
ResourceTree
getResourceUrl in interface ResourceTreenull if no resource exists at the given path.public ResourceTreeProvider getResourceTreeProvider()
ResourceTree
getResourceTreeProvider in interface ResourceTreenull.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||