org.apache.tuscany.sca.host.corba.naming
Class TransientNamingContext.TransientBindingIterator

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CosNaming.BindingIteratorPOA
          extended by org.apache.tuscany.sca.host.corba.naming.TransientNamingContext.TransientBindingIterator
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, org.omg.CosNaming.BindingIteratorOperations
Enclosing class:
TransientNamingContext

public class TransientNamingContext.TransientBindingIterator
extends org.omg.CosNaming.BindingIteratorPOA

Context implementation version of the BindingIterator object used to return list items.


Constructor Summary
TransientNamingContext.TransientBindingIterator(org.omg.PortableServer.POA poa, java.util.HashMap bindings)
          Create a new BindingIterator hosted by the given POA and iterating over the map of items.
 
Method Summary
 void destroy()
          Destory this BindingIterator instance, which deativates it from the hosting POA.
 boolean next_n(int how_many, org.omg.CosNaming.BindingListHolder bl)
          Retrieve the next "n" items from the list, returned as a BindingList.
 boolean next_one(org.omg.CosNaming.BindingHolder b)
          Return the next object in the iteration sequence.
 
Methods inherited from class org.omg.CosNaming.BindingIteratorPOA
_all_interfaces, _invoke, _this, _this
 
Methods 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransientNamingContext.TransientBindingIterator

public TransientNamingContext.TransientBindingIterator(org.omg.PortableServer.POA poa,
                                                       java.util.HashMap bindings)
Create a new BindingIterator hosted by the given POA and iterating over the map of items.

Parameters:
poa - The hosting POA.
bindings - The HashMap of bound objects.
Method Detail

next_one

public boolean next_one(org.omg.CosNaming.BindingHolder b)
Return the next object in the iteration sequence.

Parameters:
b - The BindingHolder used to return the next item. If we've reached the end of the sequence, an item with an empty name is returned.
Returns:
true if there is another item, false otherwise.

next_n

public boolean next_n(int how_many,
                      org.omg.CosNaming.BindingListHolder bl)
Retrieve the next "n" items from the list, returned as a BindingList.

Parameters:
how_many - The count of items to retrieve.
bl - A holder for returning an array of Bindings for the returned items.
Returns:
true if any items were returned, false if there's nothing left to return.

destroy

public void destroy()
Destory this BindingIterator instance, which deativates it from the hosting POA.