| java.lang.Object org.zkoss.util.resource.ClassLocator
ClassLocator | public class ClassLocator implements Locator(Code) | | The locator searches the current thread's context class loader,
and then this class's class loader.
It is important to use this locator if you want to load something
in other jar files.
Besides
Locator , it also provides additional methods,
such as
ClassLocator.getResources .
Since this locator is used frequently,
Locators.getDefault is provided to return an instance of this class,
author: tomyeh |
Inner Class :public static class Resource | |
ClassLocator | public ClassLocator()(Code) | | |
getDependentXMLResources | public List getDependentXMLResources(String name, String elName, String elDepends) throws IOException(Code) | | Returns a list of resources (
Resource ) after resolving
the dependence.
The resource is returned in the format of
Resource To resolve the dependence, it assumes each resource has two
element whose name is identified by elName and elDepends.
The elName element specifies the unique name of each resource.
The elDepends element specifies a list of names of resources
that this resource depends on. If not found, it assumes it could
be loaded first.
Parameters: name - the resouce name, such as "metainfo/i3-comp.xml". Parameters: elName - the element used to specify the name. Parameters: elDepends - the element used to specify the dependence. a list of Resource of the specified name. |
getDirectory | public String getDirectory()(Code) | | Always returns null.
|
hashCode | public int hashCode()(Code) | | |
|
|