Extension SDK 10.1.3.36.73

oracle.jdeveloper.java
Interface JavaResourceLocator

All Known Implementing Classes:
BaseClassLocator, LocatorWrapper

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.
 

Method Detail

getClassURL

public 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

public 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

Extension SDK 10.1.3.36.73

 

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