1. /*
  2. * @(#)RegistryHandler.java 1.6 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.rmi.registry;
  8. import java.rmi.RemoteException;
  9. import java.rmi.UnknownHostException;
  10. /**
  11. * <code>RegistryHandler</code> is an interface used internally by the RMI
  12. * runtime in previous implementation versions. It should never be accessed
  13. * by application code.
  14. *
  15. * @version 1.6, 11/29/01
  16. * @author Ann Wollrath
  17. * @since JDK1.1
  18. * @deprecated no replacement
  19. */
  20. public interface RegistryHandler {
  21. /**
  22. * Returns a "stub" for contacting a remote registry
  23. * on the specified host and port.
  24. *
  25. * @deprecated no replacement. As of JDK1.2, RMI no longer uses the
  26. * <code>RegistryHandler</code> to obtain the registry's stub.
  27. */
  28. Registry registryStub(String host, int port)
  29. throws RemoteException, UnknownHostException;
  30. /**
  31. * Constructs and exports a Registry on the specified port.
  32. * The port must be non-zero.
  33. *
  34. * @deprecated no replacement. As of JDK1.2, RMI no longer uses the
  35. * <code>RegistryHandler</code> to obtain the registry's implementation.
  36. */
  37. Registry registryImpl(int port) throws RemoteException;
  38. }