java.rmi.registry
Interface Registry
public
interface
Registry
extends Remote
Method Summary |
void | bind(String name, Remote obj) |
String[] | list() |
Remote | lookup(String name)
Find and return the reference to the object that was previously bound
to the registry by this name. |
void | rebind(String name, Remote obj) |
void | unbind(String name) |
public int REGISTRY_PORT
public void bind(String name, Remote obj)
public String[] list()
public Remote lookup(String name)
Find and return the reference to the object that was previously bound
to the registry by this name. For remote objects, this method returns
the stub instances, containing the code for remote invocations.
Since jdk 1.5 this method does not longer require the stub class
(nameImpl_Stub) to be present. If such class is not found, the stub is
replaced by the dynamically constructed proxy class. No attempt to find
and load the stubs is made if the system property
java.rmi.server.ignoreStubClasses is set to true (set to reduce the
starting time if the stubs are surely not present and exclusively 1.2
RMI is used).
Parameters: name the name of the object
Returns: the reference to that object on that it is possible to invoke
the (usually remote) object methods.
Throws: RemoteException NotBoundException AccessException
public void rebind(String name, Remote obj)
public void unbind(String name)