org.sapia.ubik.ioc
Interface NamingService

All Known Implementing Classes:
NamingServiceBean

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.

Author:
yduchesne
See Also:
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

bind

void bind(java.lang.String name,
          java.lang.Object o)
          throws javax.naming.NamingException
Binds the given object to the remote Ubik JNDI provider to which this instance corresponds.

Parameters:
name - the name under which to bind the object.
o - the object to bind.
Throws:
javax.naming.NamingException

lookup

java.lang.Object lookup(java.lang.String name)
                        throws javax.naming.NamingException,
                               javax.naming.NameNotFoundException
Looks up the object under the given name.

Parameters:
name - the name of the remote object to lookup.
Throws:
javax.naming.NamingException
javax.naming.NameNotFoundException

register

void register(ServiceDiscoListener listener)
Registers the given listener with this instance.

Parameters:
listener - a ServiceDiscoListener.

unregister

void unregister(ServiceDiscoListener listener)
Unregisters the given listener from this instance.

Parameters:
listener - a ServiceDiscoListener.


Copyright © 2010 Sapia OSS. All Rights Reserved.