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
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
FieldsModifier and TypeFieldDescriptionprivate Iterator
<InternalBindingValue> private Map
<InternalBindingKey, InternalBindingValue> private int
private POA
Fields inherited from class com.sun.corba.ee.impl.naming.cosnaming.BindingIteratorImpl
orb
-
Constructor Summary
ConstructorsConstructorDescriptionTransientBindingIterator
(ORB orb, Map<InternalBindingKey, InternalBindingValue> aTable, POA thePOA) Constructs a new TransientBindingIterator object. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Destroys this BindingIterator by disconnecting from the ORBfinal boolean
Returns the next binding in the NamingContext.final int
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 Details
-
nsPOA
-
currentSize
private int currentSize -
bindingMap
-
bindingIterator
-
-
Constructor Details
-
TransientBindingIterator
public TransientBindingIterator(ORB orb, Map<InternalBindingKey, InternalBindingValue> aTable, POA thePOA) throws ExceptionConstructs 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
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 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:
destroyImpl
in 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:
remainingElementsImpl
in classBindingIteratorImpl
- Returns:
- the remaining number of elements in the iterator.
-