Top Description Fields Methods
java.rmi.server

public Interface LoaderHandler

Annotations
@Deprecated
Imports
java.net.MalformedURLException, .URL

Deprecated

no replacement

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

Field Summary

Modifier and TypeField and Description
public static final String
packagePrefix

package of system LoaderHandler implementation.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the security context
getSecurityContext
(ClassLoader
a class loader from which to get the security context
loader
)
Deprecated no replacement

Returns the security context of the given class loader.

public Class<?>

Returns:

the Class object representing the loaded class
loadClass
(String
the name of the class to load
name
)
Deprecated no replacement

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

public Class<?>

Returns:

the Class object representing the loaded class
loadClass
(URL
the URL from which to load the class
codebase
,
String
the name of the class to load
name
)
Deprecated no replacement

Loads a class from a URL.

Field Detail

packagePrefixback to summary
public static final String packagePrefix

package of system LoaderHandler implementation.

Method Detail

getSecurityContextback to summary
public Object getSecurityContext(ClassLoader loader)

Deprecated

no replacement

Returns the security context of the given class loader.

Parameters
loader:ClassLoader

a class loader from which to get the security context

Returns:Object

the security context

Annotations
@Deprecated
Since
1.1
loadClassback to summary
public Class<?> loadClass(String name) throws MalformedURLException, ClassNotFoundException

Deprecated

no replacement

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

Parameters
name:String

the name of the class to load

Returns:Class<?>

the Class object representing the loaded class

Annotations
@Deprecated
Exceptions
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.
Since
1.1
loadClassback to summary
public Class<?> loadClass(URL codebase, String name) throws MalformedURLException, ClassNotFoundException

Deprecated

no replacement

Loads a class from a URL.

Parameters
codebase:URL

the URL from which to load the class

name:String

the name of the class to load

Returns:Class<?>

the Class object representing the loaded class

Annotations
@Deprecated
Exceptions
MalformedURLException:
if the codebase parameter contains an invalid URL
ClassNotFoundException:
if a definition for the class could not be found at the specified URL
Since
1.1