public interface

LoaderHandler

java.rmi.server.LoaderHandler

This interface is deprecated.
no replacement

Class Overview

LoaderHandler is an interface used internally by the RMI runtime in previous implementation versions. It should never be accessed by application code.

Summary

Constants
String packagePrefix package of system LoaderHandler implementation.
Public Methods
abstract Object getSecurityContext(ClassLoader loader)
This method is deprecated. no replacement
abstract Class<?> loadClass(URL codebase, String name)
This method is deprecated. no replacement
abstract Class<?> loadClass(String name)
This method is deprecated. no replacement

Constants

public static final String packagePrefix

package of system LoaderHandler implementation.

Constant Value: "sun.rmi.server"

Public Methods

public abstract Object getSecurityContext (ClassLoader loader)

This method is deprecated.
no replacement

Returns the security context of the given class loader.

Parameters
loader a class loader from which to get the security context
Returns
  • the security context

public abstract Class<?> loadClass (URL codebase, String name)

This method is deprecated.
no replacement

Loads a class from a URL.

Parameters
codebase the URL from which to load the class
name the name of the class to load
Returns
  • the Class object representing the loaded class
Throws
MalformedURLException if the codebase paramater contains an invalid URL
ClassNotFoundException if a definition for the class could not be found at the specified URL

public abstract Class<?> loadClass (String name)

This method is deprecated.
no replacement

Loads a class from the location specified by the java.rmi.server.codebase property.

Parameters
name the name of the class to load
Returns
  • the Class object representing the loaded class
Throws
MalformedURLException if the system property java.rmi.server.codebase contains an invalid URL
ClassNotFoundException if a definition for the class could not be found at the codebase location.