java.lang.Object
gnu.classpath.tools.rmi.registry.RegistryImpl
- All Implemented Interfaces:
- java.rmi.registry.Registry, java.rmi.Remote
- public class RegistryImpl
- extends java.lang.Object
- implements java.rmi.registry.Registry
The optionally persistent registry implementation.
Constructor Summary |
RegistryImpl(java.util.Map aTable)
Create the registry implementation that uses the given bidirectinal
table to keep the data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bindings
java.util.Map bindings
- The binding table.
RegistryImpl
public RegistryImpl(java.util.Map aTable)
- Create the registry implementation that uses the given bidirectinal
table to keep the data.
lookup
public java.rmi.Remote lookup(java.lang.String name)
throws java.rmi.RemoteException,
java.rmi.NotBoundException,
java.rmi.AccessException
- Description copied from interface:
java.rmi.registry.Registry
- 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).
- Specified by:
lookup
in interface java.rmi.registry.Registry
bind
public void bind(java.lang.String name,
java.rmi.Remote obj)
throws java.rmi.RemoteException,
java.rmi.AlreadyBoundException,
java.rmi.AccessException
- Specified by:
bind
in interface java.rmi.registry.Registry
unbind
public void unbind(java.lang.String name)
throws java.rmi.RemoteException,
java.rmi.NotBoundException,
java.rmi.AccessException
- Specified by:
unbind
in interface java.rmi.registry.Registry
rebind
public void rebind(java.lang.String name,
java.rmi.Remote obj)
throws java.rmi.RemoteException,
java.rmi.AccessException
- Specified by:
rebind
in interface java.rmi.registry.Registry
list
public java.lang.String[] list()
throws java.rmi.RemoteException,
java.rmi.AccessException
- Specified by:
list
in interface java.rmi.registry.Registry