KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > rmi > server > LoaderHandler


1 /*
2  * @(#)LoaderHandler.java 1.18 04/05/18
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.rmi.server;
9
10 import java.net.MalformedURLException JavaDoc;
11 import java.net.URL JavaDoc;
12
13 /**
14  * <code>LoaderHandler</code> is an interface used internally by the RMI
15  * runtime in previous implementation versions. It should never be accessed
16  * by application code.
17  *
18  * @version 1.18, 05/18/04
19  * @author Ann Wollrath
20  * @since JDK1.1
21  *
22  * @deprecated no replacement
23  */

24 @Deprecated JavaDoc
25 public interface LoaderHandler {
26
27     /** package of system <code>LoaderHandler</code> implementation. */
28     final static String JavaDoc packagePrefix = "sun.rmi.server";
29
30     /**
31      * Loads a class from the location specified by the
32      * <code>java.rmi.server.codebase</code> property.
33      *
34      * @param name the name of the class to load
35      * @return the <code>Class</code> object representing the loaded class
36      * @exception MalformedURLException
37      * if the system property <b>java.rmi.server.codebase</b>
38      * contains an invalid URL
39      * @exception ClassNotFoundException
40      * if a definition for the class could not
41      * be found at the codebase location.
42      * @since JDK1.1
43      * @deprecated no replacement
44      */

45     @Deprecated JavaDoc
46     Class JavaDoc<?> loadClass(String JavaDoc name)
47     throws MalformedURLException JavaDoc, ClassNotFoundException JavaDoc;
48
49     /**
50      * Loads a class from a URL.
51      *
52      * @param codebase the URL from which to load the class
53      * @param name the name of the class to load
54      * @return the <code>Class</code> object representing the loaded class
55      * @exception MalformedURLException
56      * if the <code>codebase</code> paramater
57      * contains an invalid URL
58      * @exception ClassNotFoundException
59      * if a definition for the class could not
60      * be found at the specified URL
61      * @since JDK1.1
62      * @deprecated no replacement
63      */

64     @Deprecated JavaDoc
65     Class JavaDoc<?> loadClass(URL JavaDoc codebase, String JavaDoc name)
66     throws MalformedURLException JavaDoc, ClassNotFoundException JavaDoc;
67
68     /**
69      * Returns the security context of the given class loader.
70      *
71      * @param loader a class loader from which to get the security context
72      * @return the security context
73      * @since JDK1.1
74      * @deprecated no replacement
75      */

76     @Deprecated JavaDoc
77     Object JavaDoc getSecurityContext(ClassLoader JavaDoc loader);
78 }
79
Popular Tags