|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NamingService
Specifies the behavior of a service that serves as a broker between a remote Ubik JNDI provider and in-VM Guice-instantiated objects.
RemoteServiceExporter,
RemoteServiceImporter| Method Summary | |
|---|---|
void |
bind(java.lang.String name,
java.lang.Object o)
Binds the given object to the remote Ubik JNDI provider to which this instance corresponds. |
java.lang.Object |
lookup(java.lang.String name)
Looks up the object under the given name. |
void |
register(ServiceDiscoListener listener)
Registers the given listener with this instance. |
void |
unregister(ServiceDiscoListener listener)
Unregisters the given listener from this instance. |
| Method Detail |
|---|
void bind(java.lang.String name,
java.lang.Object o)
throws javax.naming.NamingException
name - the name under which to bind the object.o - the object to bind.
javax.naming.NamingException
java.lang.Object lookup(java.lang.String name)
throws javax.naming.NamingException,
javax.naming.NameNotFoundException
name - the name of the remote object to lookup.
javax.naming.NamingException
javax.naming.NameNotFoundExceptionvoid register(ServiceDiscoListener listener)
listener - a ServiceDiscoListener.void unregister(ServiceDiscoListener listener)
listener - a ServiceDiscoListener.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||