Class TransientBindingIterator

All Implemented Interfaces:
InvokeHandler, BindingIteratorOperations

public class TransientBindingIterator extends BindingIteratorImpl
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:
  • Constructor Details

    • TransientBindingIterator

      public TransientBindingIterator(ORB orb, Hashtable aTable, POA thePOA) throws Exception
      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

      public final boolean NextOne(BindingHolder b)
      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:
      NextOne in class BindingIteratorImpl
      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:
      Destroy in class BindingIteratorImpl
      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:
      RemainingElements in class BindingIteratorImpl
      Returns:
      the remaining number of elements in the iterator.