org.objectweb.david.apis.services.naming
Interface NameServerOperations

All Superinterfaces:
org.omg.CORBA.portable.IDLEntity, java.io.Serializable
All Known Subinterfaces:
NameServer
All Known Implementing Classes:
_NameServerImplBase, _NameServerStub

public interface NameServerOperations
extends org.omg.CORBA.portable.IDLEntity

Interface describing the possible operations on the simple David name servers.


Method Summary
 org.omg.CORBA.Object get(java.lang.String name)
          Returns the interface registered under the name 'name' in the name server.
 boolean put(java.lang.String name, org.omg.CORBA.Object itf, boolean replace)
          Registers interface 'itf' under the name 'name' in the name server.
 void remove(java.lang.String name)
          Removes the interface registered under the name 'name' from the name server.
 

Method Detail

remove

public void remove(java.lang.String name)
Removes the interface registered under the name 'name' from the name server.

Parameters:
name - the name of the interface;

put

public boolean put(java.lang.String name,
                   org.omg.CORBA.Object itf,
                   boolean replace)
Registers interface 'itf' under the name 'name' in the name server.

Parameters:
name - the name of the interface;
itf - the interface to register.
replace - true means replace any existing interface registered under the same name, if any.
Returns:
true if the interface could be added to the name server, false otherwise.

get

public org.omg.CORBA.Object get(java.lang.String name)
Returns the interface registered under the name 'name' in the name server.

Parameters:
name - the name of the interface;
Returns:
the registered interface, 'null' if 'name' is not associated with any interface in the name server.