public RegistryImpl(int port, RMIClientSocketFactory cf, RMIServerSocketFactory sf) throws RemoteException { super(new UnicastServerRef(new ObjID(ObjID.REGISTRY_ID), port, sf));
public RegistryImpl(int port) throws RemoteException { this(port, RMISocketFactory.getSocketFactory(), RMISocketFactory.getSocketFactory());
public RegistryImpl(int port, RMIClientSocketFactory cf, RMIServerSocketFactory sf) throws RemoteException {	super(new UnicastServerRef(new ObjID(ObjID.REGISTRY_ID), port, sf));	// The following is unnecessary, because UnicastRemoteObject export itself automatically.	//((UnicastServerRef)getRef()).exportObject(this);}