46
47 /**
48 * Class TransientBindingIterator implements the abstract methods
49 * defined by BindingIteratorImpl, to use with the TransientNamingContext
50 * implementation of the NamingContextImpl. The TransientBindingIterator
51 * implementation receives a hash table of InternalBindingValues, and uses
52 * an Enumeration to iterate over the contents of the hash table.
53 * @see BindingIteratorImpl
54 * @see TransientNamingContext
55 */
56 public class TransientBindingIterator extends BindingIteratorImpl
57 {
58 // There is only one POA used for both TransientNamingContext and
59 // TransientBindingIteraor servants.
60 private POA nsPOA;
61 /**
62 * Constructs a new TransientBindingIterator object.
63 * @param orb a org.omg.CORBA.ORB object.
64 * @param aTable A hashtable containing InternalBindingValues which is
65 * the content of the TransientNamingContext.
66 * @param java.lang.Exception a Java exception.
67 * @exception Exception a Java exception thrown of the base class cannot
68 * initialize.
69 */
70 public TransientBindingIterator(ORB orb, Hashtable aTable,
71 POA thePOA )
72 throws java.lang.Exception
73 {
74 super(orb);
75 theHashtable = aTable;
76 theEnumeration = this.theHashtable.elements();
77 currentSize = this.theHashtable.size();
78 this.nsPOA = thePOA;
79 }
80
81 /**
82 * Returns the next binding in the NamingContext. Uses the enumeration
83 * object to determine if there are more bindings and if so, returns
84 * the next binding from the InternalBindingValue.
85 * @param b The Binding as an out parameter.
86 * @return true if there were more bindings.
|
46
47 /**
48 * Class TransientBindingIterator implements the abstract methods
49 * defined by BindingIteratorImpl, to use with the TransientNamingContext
50 * implementation of the NamingContextImpl. The TransientBindingIterator
51 * implementation receives a hash table of InternalBindingValues, and uses
52 * an Enumeration to iterate over the contents of the hash table.
53 * @see BindingIteratorImpl
54 * @see TransientNamingContext
55 */
56 public class TransientBindingIterator extends BindingIteratorImpl
57 {
58 // There is only one POA used for both TransientNamingContext and
59 // TransientBindingIteraor servants.
60 private POA nsPOA;
61 /**
62 * Constructs a new TransientBindingIterator object.
63 * @param orb a org.omg.CORBA.ORB object.
64 * @param aTable A hashtable containing InternalBindingValues which is
65 * the content of the TransientNamingContext.
66 * @exception Exception a Java exception thrown of the base class cannot
67 * initialize.
68 */
69 public TransientBindingIterator(ORB orb, Hashtable aTable,
70 POA thePOA )
71 throws java.lang.Exception
72 {
73 super(orb);
74 theHashtable = aTable;
75 theEnumeration = this.theHashtable.elements();
76 currentSize = this.theHashtable.size();
77 this.nsPOA = thePOA;
78 }
79
80 /**
81 * Returns the next binding in the NamingContext. Uses the enumeration
82 * object to determine if there are more bindings and if so, returns
83 * the next binding from the InternalBindingValue.
84 * @param b The Binding as an out parameter.
85 * @return true if there were more bindings.
|