public class ContextBindings extends Object implements NamingEnumeration
| Modifier and Type | Field and Description |
|---|---|
private Map |
bindings
A Map of the bindings of a Context.
|
private Iterator |
iterator
The iterator utilized in the Enumeration
|
| Constructor and Description |
|---|
ContextBindings(Map table)
Creates a ContextBindings object based upon an a Map of names and the objects
the names are bound to.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the ContextBindings instance, rendering it inoperable.
|
boolean |
hasMore()
Returns
true if there are more elements available, otherwise
false. |
boolean |
hasMoreElements()
Returns
true if there are more elements available, otherwise
false. |
Object |
next()
Returns a
Binding created from the next available name. |
Object |
nextElement()
Returns a
Binding created from the next available name. |
private Map bindings
private Iterator iterator
public ContextBindings(Map table)
table is modified after instantiation
of ContextBindings, behavior is undefined and should be considered invalid.table - The table upon which the ContextBindings is based.public boolean hasMoreElements()
true if there are more elements available, otherwise
false.hasMoreElements in interface Enumerationtrue if there are more elements available, otherwise
falsepublic boolean hasMore()
throws NamingException
true if there are more elements available, otherwise
false.hasMore in interface NamingEnumerationtrue if there are more elements available, otherwise
falseNamingException - if a naming exception is encounteredpublic Object nextElement()
Binding created from the next available name.nextElement in interface Enumerationpublic Object next() throws NamingException
Binding created from the next available name.next in interface NamingEnumerationNamingException - if a naming exception occurspublic void close()
close in interface NamingEnumerationCopyright © 2020. All rights reserved.