Class TransientBindingIterator
java.lang.Object
org.omg.PortableServer.Servant
org.omg.CosNaming.BindingIteratorPOA
com.sun.corba.se.impl.naming.cosnaming.BindingIteratorImpl
com.sun.corba.se.impl.naming.cosnaming.TransientBindingIterator
- All Implemented Interfaces:
InvokeHandler,BindingIteratorOperations
Class TransientBindingIterator implements the abstract methods
defined by BindingIteratorImpl, to use with the TransientNamingContext
implementation of the NamingContextImpl. The TransientBindingIterator
implementation receives a hash table of InternalBindingValues, and uses
an Enumeration to iterate over the contents of the hash table.
- See Also:
-
Field Summary
Fields inherited from class com.sun.corba.se.impl.naming.cosnaming.BindingIteratorImpl
orb -
Constructor Summary
ConstructorsConstructorDescriptionTransientBindingIterator(ORB orb, Hashtable aTable, POA thePOA) Constructs a new TransientBindingIterator object. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidDestroy()Destroys this BindingIterator by disconnecting from the ORBfinal booleanReturns the next binding in the NamingContext.final intReturns the remaining number of elements in the iterator.Methods inherited from class com.sun.corba.se.impl.naming.cosnaming.BindingIteratorImpl
destroy, list, next_n, next_oneMethods inherited from class org.omg.CosNaming.BindingIteratorPOA
_all_interfaces, _invoke, _this, _thisMethods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
-
Constructor Details
-
TransientBindingIterator
Constructs a new TransientBindingIterator object.- Parameters:
orb- a org.omg.CORBA.ORB object.aTable- A hashtable containing InternalBindingValues which is the content of the TransientNamingContext.java- .lang.Exception a Java exception.- Throws:
Exception- a Java exception thrown of the base class cannot initialize.
-
-
Method Details
-
NextOne
Returns the next binding in the NamingContext. Uses the enumeration object to determine if there are more bindings and if so, returns the next binding from the InternalBindingValue.- Specified by:
NextOnein classBindingIteratorImpl- Parameters:
b- The Binding as an out parameter.- Returns:
- true if there were more bindings.
-
Destroy
public final void Destroy()Destroys this BindingIterator by disconnecting from the ORB- Specified by:
Destroyin classBindingIteratorImpl- Throws:
SystemException- One of a fixed set of CORBA system exceptions.
-
RemainingElements
public final int RemainingElements()Returns the remaining number of elements in the iterator.- Specified by:
RemainingElementsin classBindingIteratorImpl- Returns:
- the remaining number of elements in the iterator.
-