org.jboss.test.security.ejb.project.support
Class NameBindingIterator
java.lang.Object
org.jboss.test.security.ejb.project.support.NameBindingIterator
- All Implemented Interfaces:
- java.util.Enumeration, javax.naming.NamingEnumeration
- public class NameBindingIterator
- extends java.lang.Object
- implements javax.naming.NamingEnumeration
An implementation of NamingEnumeration for listing the Bindings
in a context. It accepts an Iterator of DirBindings and transforms
the raw object and attributes into the output object using the
DirectoryManager.getObjectInstance method.
- See Also:
DirBinding
(src) ,
DirectoryManager.getObjectInstance(Object,Name,Context,Hashtable,Attributes)
Constructor Summary |
NameBindingIterator(java.util.Iterator bindings,
javax.naming.directory.DirContext context)
Creates new NameBindingIterator for enumerating a list of Bindings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameBindingIterator
public NameBindingIterator(java.util.Iterator bindings,
javax.naming.directory.DirContext context)
- Creates new NameBindingIterator for enumerating a list of Bindings.
close
public void close()
throws javax.naming.NamingException
- Specified by:
close
in interface javax.naming.NamingEnumeration
- Throws:
javax.naming.NamingException
hasMore
public boolean hasMore()
throws javax.naming.NamingException
- Specified by:
hasMore
in interface javax.naming.NamingEnumeration
- Throws:
javax.naming.NamingException
next
public java.lang.Object next()
throws javax.naming.NamingException
- Specified by:
next
in interface javax.naming.NamingEnumeration
- Throws:
javax.naming.NamingException
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface java.util.Enumeration
nextElement
public java.lang.Object nextElement()
- Specified by:
nextElement
in interface java.util.Enumeration