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:
  • Field Details

  • Constructor Details

    • TransientBindingIterator

      public TransientBindingIterator(ORB orb, Map<InternalBindingKey,InternalBindingValue> 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.
      thePOA - the POA to use.
      Throws:
      Exception - a Java exception.
  • Method Details

    • nextOneImpl

      public final boolean nextOneImpl(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:
      nextOneImpl in class BindingIteratorImpl
      Parameters:
      b - The Binding as an out parameter.
      Returns:
      true if there were more bindings.
    • destroyImpl

      public final void destroyImpl()
      Destroys this BindingIterator by disconnecting from the ORB
      Specified by:
      destroyImpl in class BindingIteratorImpl
      Throws:
      SystemException - One of a fixed set of CORBA system exceptions.
    • remainingElementsImpl

      public final int remainingElementsImpl()
      Returns the remaining number of elements in the iterator.
      Specified by:
      remainingElementsImpl in class BindingIteratorImpl
      Returns:
      the remaining number of elements in the iterator.