Source for java.rmi.registry.RegistryHandler

   1: /*
   2:  * @(#)RegistryHandler.java    1.14 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.registry;
   9: 
  10: import java.rmi.RemoteException;
  11: import java.rmi.UnknownHostException;
  12: 
  13: /**
  14:  * <code>RegistryHandler</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.14, 05/18/04
  19:  * @author  Ann Wollrath
  20:  * @since   JDK1.1
  21:  * @deprecated no replacement
  22:  */
  23: @Deprecated
  24:	  public interface RegistryHandler {
  25:
  26:    /**
  27:     * Returns a "stub" for contacting a remote registry
  28:     * on the specified host and port.
  29:     *
  30:     * @deprecated no replacement.  As of the Java 2 platform v1.2, RMI no
  31:     * longer uses the <code>RegistryHandler</code> to obtain the registry's
  32:     * stub.
  33:     * @param host name of remote registry host
  34:     * @param port remote registry port
  35:     * @return remote registry stub
  36:     * @throws RemoteException if a remote error occurs
  37:     * @throws UnknownHostException if unable to resolve given hostname
  38:     */
  39:    @Deprecated
  40:    Registry registryStub(String host, int port)
  41:    throws RemoteException, UnknownHostException;
  42:
  43:    /**
  44:     * Constructs and exports a Registry on the specified port.
  45:     * The port must be non-zero.
  46:     *
  47:     * @deprecated no replacement.  As of the Java 2 platform v1.2, RMI no
  48:     * longer uses the <code>RegistryHandler</code> to obtain the registry's
  49:     * implementation.
  50:     * @param port port to export registry on
  51:     * @return registry stub
  52:     * @throws RemoteException if a remote error occurs
  53:     */
  54:    @Deprecated
  55:    Registry registryImpl(int port) throws RemoteException;
  56:}