public interface JavaResourceLocator
JavaResourceLocator is an interface for locating Java class and resource files for a ClassLoader implementation. This interface is unrelated to the JavaClassLocator API, and is meant only as a support API for class loading.| Modifier and Type | Method and Description |
|---|---|
java.net.URL |
getClassURL(java.lang.String fqClassName)
Fetch the URL for the Java *.class file for the given fully-qualified Java class name.
|
java.net.URL |
getResourceURL(java.lang.String resourceName)
Fetch the URL for the Java resource file given the resource name.
|
java.util.Collection<java.net.URL> |
getResourceURLs(java.lang.String resourceName)
Fetch all the URL's for the Java resource file given the resource name.
|
java.net.URL getClassURL(java.lang.String fqClassName)
fqClassName - the fully-qualified class name in dotted notationjava.net.URL getResourceURL(java.lang.String resourceName)
resourceName - the full name of the resource including any file extensionsjava.util.Collection<java.net.URL> getResourceURLs(java.lang.String resourceName)
resourceName - the full name of the resource including any file extensions