home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / rmi / server / LoaderHandler.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  1.7 KB  |  55 lines

  1. /*
  2.  * @(#)LoaderHandler.java    1.7 98/03/18
  3.  *
  4.  * Copyright 1996, 1997 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.rmi.server;
  16.  
  17. import java.net.MalformedURLException;
  18. import java.net.URL;
  19.  
  20. public interface LoaderHandler {
  21.     /**
  22.      * Find loader handler package prefix: assumes that the implementation of
  23.      * the LoaderHandler class is located in the package defined by the
  24.      * prefix.
  25.      */
  26.     final static String packagePrefix = "sun.rmi.server";
  27.  
  28.     /**
  29.      * Load class using java.rmi.server.codebase property.
  30.      *
  31.      * @exception java.lang.ClassNotFoundException if the class could not be
  32.      *              found.
  33.      * @exception java.net.MalformedURLException   if the URL is malformed.
  34.      */
  35.     Class loadClass(String name)
  36.     throws MalformedURLException, ClassNotFoundException;
  37.  
  38.     /**
  39.      * Load class from codebase URL specified.
  40.      *
  41.      * @exception java.lang.ClassNotFoundException if the class could not be
  42.      *              found.
  43.      * @exception java.net.MalformedURLException   if the URL is malformed.
  44.      */
  45.     Class loadClass(URL codebase, String name)
  46.     throws MalformedURLException, ClassNotFoundException;
  47.  
  48.     /**
  49.      * Returns the security context of the given class loader
  50.      * (e.g., a URL)
  51.      */
  52.     Object getSecurityContext(ClassLoader loader);
  53.     
  54. }
  55.