Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.classpath.tools.rmi.registry
Class RegistryImpl  view RegistryImpl download RegistryImpl.java

java.lang.Object
  extended bygnu.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.


Field Summary
(package private)  java.util.Map bindings
          The binding table.
 
Fields inherited from interface java.rmi.registry.Registry
REGISTRY_PORT
 
Constructor Summary
RegistryImpl(java.util.Map aTable)
          Create the registry implementation that uses the given bidirectinal table to keep the data.
 
Method Summary
 void bind(java.lang.String name, java.rmi.Remote obj)
           
 java.lang.String[] list()
           
 java.rmi.Remote lookup(java.lang.String name)
          Find and return the reference to the object that was previously bound to the registry by this name.
 void rebind(java.lang.String name, java.rmi.Remote obj)
           
 void unbind(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bindings

java.util.Map bindings
The binding table.

Constructor Detail

RegistryImpl

public RegistryImpl(java.util.Map aTable)
Create the registry implementation that uses the given bidirectinal table to keep the data.

Method Detail

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