Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.jdeveloper.java
Interface JavaResourceLocator

All Known Implementing Classes:
ArrayClassLocator, BaseClassLocator, CachedDirURLClassLocator, DebugClassLocator, DirURLClassLocator, JarClassPathClassLocator, JarURLClassLocator, LocatorWrapper, PathClassLocator, URLClassLocator

public interface JavaResourceLocator

The 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.


Method Summary
 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.

 

Method Detail

getClassURL

java.net.URL getClassURL(java.lang.String fqClassName)
Fetch the URL for the Java *.class file for the given fully-qualified Java class name. This may return null if a given class URL could not be found.
Parameters:
fqClassName - the fully-qualified class name in dotted notation
Returns:
the Java *.class URL, or null if it is not found

getResourceURL

java.net.URL getResourceURL(java.lang.String resourceName)
Fetch the URL for the Java resource file given the resource name. This should include the full path of the resource, minus any root directory that is part of the class path.
Parameters:
resourceName - the full name of the resource including any file extensions
Returns:
the Java resource URL, or null if it is not found

getResourceURLs

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. This should include the full path of the resource.
Parameters:
resourceName - the full name of the resource including any file extensions
Returns:
the collection of Java resource URL's, may be empty but not null.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


Copyright © 1997, 2012, Oracle. All rights reserved.