FileDocCategorySizeDatePackage
NamingContextDataStore.javaAPI DocJava SE 5 API3812Fri Aug 26 14:54:26 BST 2005com.sun.corba.se.impl.naming.cosnaming

NamingContextDataStore

public interface NamingContextDataStore
This interface defines a set of methods that must be implemented by the "data store" associated with a NamingContext implementation. It allows for different implementations of naming contexts that support the same API but differ in storage mechanism.

Fields Summary
Constructors Summary
Methods Summary
public voidBind(org.omg.CosNaming.NameComponent n, org.omg.CORBA.Object obj, org.omg.CosNaming.BindingType bt)
Method which implements binding a name to an object as the specified binding type.

param
n a NameComponent which is the name under which the object will be bound.
param
obj the object reference to be bound.
param
bt Type of binding (as object or as context).
exception
org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.

public voidDestroy()
Method which implements destroying this NamingContext.

exception
org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.

public booleanIsEmpty()
Method which returns whether this NamingContext is empty or not.

return
true if this NamingContext contains no bindings.

public voidList(int how_many, org.omg.CosNaming.BindingListHolder bl, org.omg.CosNaming.BindingIteratorHolder bi)
Method which implements listing the contents of this NamingContext and return a binding list and a binding iterator.

param
how_many The number of requested bindings in the BindingList.
param
bl The BindingList as an out parameter.
param
bi The BindingIterator as an out parameter.
exception
org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.

public org.omg.CosNaming.NamingContextNewContext()
Method which implements creating a new NamingContext.

return
an object reference for a new NamingContext object implemented by this Name Server.
exception
org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.

public org.omg.CORBA.ObjectResolve(org.omg.CosNaming.NameComponent n, org.omg.CosNaming.BindingTypeHolder bth)
Method which implements resolving the specified name, returning the type of the binding and the bound object reference. If the id and kind of the NameComponent are both empty, the initial naming context (i.e., the local root) must be returned.

param
n a NameComponent which is the name to be resolved.
param
bth the BindingType as an out parameter.
return
the object reference bound under the supplied name.
exception
org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.

public org.omg.CORBA.ObjectUnbind(org.omg.CosNaming.NameComponent n)
Method which implements unbinding a name.

return
the object reference bound to the name, or null if not found.
exception
org.omg.CORBA.SystemException One of a fixed set of CORBA system exceptions.

public org.omg.PortableServer.POAgetNSPOA()