Class TransientBindingIterator
- java.lang.Object
-
- org.omg.PortableServer.Servant
-
- org.omg.CosNaming.BindingIteratorPOA
-
- com.sun.corba.ee.impl.naming.cosnaming.BindingIteratorImpl
-
- com.sun.corba.ee.impl.naming.cosnaming.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:
BindingIteratorImpl,TransientNamingContext
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Iterator<InternalBindingValue>bindingIteratorprivate java.util.Map<InternalBindingKey,InternalBindingValue>bindingMapprivate intcurrentSizeprivate POAnsPOA-
Fields inherited from class com.sun.corba.ee.impl.naming.cosnaming.BindingIteratorImpl
orb
-
-
Constructor Summary
Constructors Constructor Description TransientBindingIterator(ORB orb, java.util.Map<InternalBindingKey,InternalBindingValue> aTable, POA thePOA)Constructs a new TransientBindingIterator object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroyImpl()Destroys this BindingIterator by disconnecting from the ORBbooleannextOneImpl(BindingHolder b)Returns the next binding in the NamingContext.intremainingElementsImpl()Returns the remaining number of elements in the iterator.-
Methods inherited from class com.sun.corba.ee.impl.naming.cosnaming.BindingIteratorImpl
destroy, list, next_n, next_one
-
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
-
-
-
-
Field Detail
-
nsPOA
private POA nsPOA
-
currentSize
private int currentSize
-
bindingMap
private java.util.Map<InternalBindingKey,InternalBindingValue> bindingMap
-
bindingIterator
private java.util.Iterator<InternalBindingValue> bindingIterator
-
-
Constructor Detail
-
TransientBindingIterator
public TransientBindingIterator(ORB orb, java.util.Map<InternalBindingKey,InternalBindingValue> aTable, POA thePOA) throws java.lang.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:
java.lang.Exception- a Java exception.
-
-
Method Detail
-
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:
nextOneImplin classBindingIteratorImpl- 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:
destroyImplin classBindingIteratorImpl- 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:
remainingElementsImplin classBindingIteratorImpl- Returns:
- the remaining number of elements in the iterator.
-
-