Name
RMIClassLoader
Synopsis
This class loads classes over the network using URLs. The class has
two loadClass()
methods, one for loading a class from a given
(absolute) URL, and another for loading a class from a given
(relative) URL, starting at a particular codebase.
public class RMIClassLoader { // No Constructor // Public Class Methods public static String getClassAnnotation( Class cl); // 1.2 public static ClassLoader getClassLoader( // 1.3 String codebase) throws java.net.MalformedURLException, java.lang.SecurityException; public static RMIClassLoaderSpi getDefaultProviderInstance( // 1.4 ); public static Class loadClass(java.net.URL codebase, String name) throws java.net.MalformedURLException, ClassNotFoundException; public static Class loadClass(String codebase, // 1.2 String name) throws java.net.MalformedURLException, ClassNotFoundException; public static Class loadClass(String codebase, String name, // 1.4 ClassLoader defaultLoader) throws java.net.MalformedURLException, ClassNotFoundException; public static Class loadProxyClass(String codebase, // 1.4 String[] interfaces, ClassLoader defaultLoader) throws ClassNotFoundException, java.net.MalformedURLException; // Deprecated Public Methods public static Object getSecurityContext( // # ClassLoader loader); public static Class loadClass( // # String name) throws java.net.MalformedURLException, ClassNotFoundException; }
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.