jdk/src/java.rmi/share/classes/java/rmi/registry/LocateRegistry.java
changeset 28059 e576535359cc
parent 25859 3317bb8137f4
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
    60      * Private constructor to disable public construction.
    60      * Private constructor to disable public construction.
    61      */
    61      */
    62     private LocateRegistry() {}
    62     private LocateRegistry() {}
    63 
    63 
    64     /**
    64     /**
    65      * Returns a reference to the the remote object <code>Registry</code> for
    65      * Returns a reference to the remote object <code>Registry</code> for
    66      * the local host on the default registry port of 1099.
    66      * the local host on the default registry port of 1099.
    67      *
    67      *
    68      * @return reference (a stub) to the remote object registry
    68      * @return reference (a stub) to the remote object registry
    69      * @exception RemoteException if the reference could not be created
    69      * @exception RemoteException if the reference could not be created
    70      * @since 1.1
    70      * @since 1.1
    74     {
    74     {
    75         return getRegistry(null, Registry.REGISTRY_PORT);
    75         return getRegistry(null, Registry.REGISTRY_PORT);
    76     }
    76     }
    77 
    77 
    78     /**
    78     /**
    79      * Returns a reference to the the remote object <code>Registry</code> for
    79      * Returns a reference to the remote object <code>Registry</code> for
    80      * the local host on the specified <code>port</code>.
    80      * the local host on the specified <code>port</code>.
    81      *
    81      *
    82      * @param port port on which the registry accepts requests
    82      * @param port port on which the registry accepts requests
    83      * @return reference (a stub) to the remote object registry
    83      * @return reference (a stub) to the remote object registry
    84      * @exception RemoteException if the reference could not be created
    84      * @exception RemoteException if the reference could not be created