|
||||||||||
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.ClassLoaderResourceContext
public class ClassLoaderResourceContext
Classloader-based resource context.
Constructor Summary | |
---|---|
ClassLoaderResourceContext(java.lang.ClassLoader loader)
Constructs a new context that will use the provided class loader to resolve resources. |
|
ClassLoaderResourceContext(java.lang.ClassLoader loader,
IResourceContext parent)
Constructs a new context that will first use the provided class loader to resolve resources and the parent context on failure. |
Method Summary | |
---|---|
java.lang.ClassLoader |
getClassLoader()
Returns the class loader used to resolve resources. |
IResource |
getLocalResource(java.lang.String name)
Returns the resource with the given name, using only the underlying class loader 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 ClassLoaderResourceContext(java.lang.ClassLoader loader)
loader
- public ClassLoaderResourceContext(java.lang.ClassLoader loader, IResourceContext parent)
loader
- parent
- Method Detail |
---|
public java.lang.ClassLoader getClassLoader()
public IResource getLocalResource(java.lang.String name)
getLocalResource
in interface IResourceContext
name
-
EmptyResource.INSTANCE
otherwise.public java.lang.String toString()
toString
in class java.lang.Object
public void toStringAware(ToString ts)
toStringAware
in interface IToStringAware
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |