|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NameServiceInterface
The interface for a simple NameService.
Method Summary | |
---|---|
void |
bindReference(java.lang.String name,
java.lang.Object obj)
Binds a string name to an object reference. |
java.lang.Object |
lookup(java.lang.String name)
Looks for the object reference which bound to the given name |
java.lang.String[] |
lookupNames(java.lang.String directory)
Retrieves a list of object reference which are bound in the given directory |
void |
rebindReference(java.lang.String name,
java.lang.Object obj)
Binds a string name to an object reference. |
void |
unbindReference(java.lang.String name)
Unbinds a string name from an object reference. |
Method Detail |
---|
void bindReference(java.lang.String name, java.lang.Object obj) throws java.rmi.RemoteException, NameAlreadyBound
name
- The string name to bind the object to.obj
- The object reference to bind.
NameAlreadyBound
- Thrown if the name is
already bound to an object reference
java.rmi.RemoteException
void rebindReference(java.lang.String name, java.lang.Object obj) throws java.rmi.RemoteException
name
- The string name to bind the object to.obj
- The object reference to bind.
java.rmi.RemoteException
void unbindReference(java.lang.String name) throws java.rmi.RemoteException, NameNotBound
name
- The string name to unbind.
NameNotBound
- Thrown if the name is not
bound to an object reference.
java.rmi.RemoteException
java.lang.Object lookup(java.lang.String name) throws java.rmi.RemoteException, NameNotBound
name
- The string name to look up.
NameNotBound
- Thrown if the name is not
bound to an object reference.
java.rmi.RemoteException
java.lang.String[] lookupNames(java.lang.String directory) throws java.rmi.RemoteException, NameNotBound
directory
- The directory to look within
java.rmi.RemoteException
NameNotBound
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |