org.objectweb.david.apis.services.naming
Interface NameServerOperations
- All Superinterfaces:
- IDLEntity, Serializable
- All Known Subinterfaces:
- NameServer
- public interface NameServerOperations
- extends IDLEntity
Interface describing the possible operations on the simple David name
servers.
|
Method Summary |
Object |
get(String name)
Returns the interface registered under the name 'name' in the name
server. |
boolean |
put(String name,
Object itf,
boolean replace)
Registers interface 'itf' under the name 'name' in the name server. |
void |
remove(String name)
Removes the interface registered under the name 'name' from the name
server. |
remove
public void remove(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(String name,
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 Object get(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.