Interface NamingContextDataStore
- All Known Implementing Classes:
NamingContextImpl,NamingContextImpl,TransientNamingContext
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidBind(NameComponent n, Object obj, BindingType bt) Method which implements binding a name to an object as the specified binding type.voidDestroy()Method which implements destroying this NamingContext.getNSPOA()booleanIsEmpty()Method which returns whether this NamingContext is empty or not.voidList(int how_many, BindingListHolder bl, BindingIteratorHolder bi) Method which implements listing the contents of this NamingContext and return a binding list and a binding iterator.Method which implements creating a new NamingContext.Resolve(NameComponent n, BindingTypeHolder bth) Method which implements resolving the specified name, returning the type of the binding and the bound object reference.Method which implements unbinding a name.
-
Method Details
-
Bind
Method which implements binding a name to an object as the specified binding type.- Parameters:
n- a NameComponent which is the name under which the object will be bound.obj- the object reference to be bound.bt- Type of binding (as object or as context).- Throws:
SystemException- One of a fixed set of CORBA system exceptions.
-
Resolve
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.- Parameters:
n- a NameComponent which is the name to be resolved.bth- the BindingType as an out parameter.- Returns:
- the object reference bound under the supplied name.
- Throws:
SystemException- One of a fixed set of CORBA system exceptions.
-
Unbind
Method which implements unbinding a name.- Returns:
- the object reference bound to the name, or null if not found.
- Throws:
SystemException- One of a fixed set of CORBA system exceptions.
-
List
Method which implements listing the contents of this NamingContext and return a binding list and a binding iterator.- Parameters:
how_many- The number of requested bindings in the BindingList.bl- The BindingList as an out parameter.bi- The BindingIterator as an out parameter.- Throws:
SystemException- One of a fixed set of CORBA system exceptions.
-
NewContext
Method which implements creating a new NamingContext.- Returns:
- an object reference for a new NamingContext object implemented by this Name Server.
- Throws:
SystemException- One of a fixed set of CORBA system exceptions.
-
Destroy
Method which implements destroying this NamingContext.- Throws:
SystemException- One of a fixed set of CORBA system exceptions.
-
IsEmpty
boolean IsEmpty()Method which returns whether this NamingContext is empty or not.- Returns:
- true if this NamingContext contains no bindings.
-
getNSPOA
POA getNSPOA()
-