1. /*
  2. * @(#)LoaderHandler.java 1.13 00/02/02
  3. *
  4. * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.rmi.server;
  11. import java.net.MalformedURLException;
  12. import java.net.URL;
  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.13, 02/02/00
  19. * @author Ann Wollrath
  20. * @since JDK1.1
  21. *
  22. * @deprecated no replacement
  23. */
  24. public interface LoaderHandler {
  25. /** package of system <code>LoaderHandler</code> implementation. */
  26. final static String packagePrefix = "sun.rmi.server";
  27. /**
  28. * Loads a class from the location specified by the
  29. * <code>java.rmi.server.codebase</code> property.
  30. *
  31. * @param name the name of the class to load
  32. * @return the <code>Class</code> object representing the loaded class
  33. * @exception MalformedURLException
  34. * if the system property <b>java.rmi.server.codebase</b>
  35. * contains an invalid URL
  36. * @exception ClassNotFoundException
  37. * if a definition for the class could not
  38. * be found at the codebase location.
  39. * @since JDK1.1
  40. * @deprecated no replacement
  41. */
  42. Class loadClass(String name)
  43. throws MalformedURLException, ClassNotFoundException;
  44. /**
  45. * Loads a class from a URL.
  46. *
  47. * @param codebase the URL from which to load the class
  48. * @param name the name of the class to load
  49. * @return the <code>Class</code> object representing the loaded class
  50. * @exception MalformedURLException
  51. * if the <code>codebase</code> paramater
  52. * contains an invalid URL
  53. * @exception ClassNotFoundException
  54. * if a definition for the class could not
  55. * be found at the specified URL
  56. * @since JDK1.1
  57. * @deprecated no replacement
  58. */
  59. Class loadClass(URL codebase, String name)
  60. throws MalformedURLException, ClassNotFoundException;
  61. /**
  62. * Returns the security context of the given class loader.
  63. *
  64. * @param loader a class loader from which to get the security context
  65. * @return the security context
  66. * @since JDK1.1
  67. * @deprecated no replacement
  68. */
  69. Object getSecurityContext(ClassLoader loader);
  70. }