public static Class<?> loadClass (String codebase, String name, ClassLoader defaultLoader) throws MalformedURLException, ClassNotFoundException

Loads a class from a codebase URL path, optionally using the supplied loader. This method should be used when the caller would like to make available to the provider implementation an additional contextual class loader to consider, such as the loader of a caller on the stack. Typically, a provider implementation will attempt to resolve the named class using the given defaultLoader, if specified, before attempting to resolve the class from the codebase URL path.

This method delegates to the RMIClassLoaderSpi.loadClass(String,String,ClassLoader) method of the provider instance, passing codebase as the first argument, name as the second argument, and defaultLoader as the third argument.

Parameters:
codebase    the list of URLs (separated by spaces) to load the class from, or null
name    the name of the class to load
defaultLoader    additional contextual class loader to use, or null

Returns:  the Class object representing the loaded class

Exceptions:
MalformedURLException    if codebase is non-null and contains an invalid URL, or if codebase is null and a provider-specific URL used to load classes is invalid
ClassNotFoundException    if a definition for the class could not be found at the specified location

Since:  1.4