org.springframework.mock.jndi
Class SimpleNamingContext.AbstractNamingEnumeration<T>

java.lang.Object
  extended by org.springframework.mock.jndi.SimpleNamingContext.AbstractNamingEnumeration<T>
All Implemented Interfaces:
java.util.Enumeration<T>, javax.naming.NamingEnumeration<T>
Direct Known Subclasses:
SimpleNamingContext.BindingEnumeration, SimpleNamingContext.NameClassPairEnumeration
Enclosing class:
SimpleNamingContext

private abstract static class SimpleNamingContext.AbstractNamingEnumeration<T>
extends java.lang.Object
implements javax.naming.NamingEnumeration<T>


Field Summary
private  java.util.Iterator<T> iterator
           
 
Constructor Summary
private SimpleNamingContext.AbstractNamingEnumeration(SimpleNamingContext context, java.lang.String proot)
           
 
Method Summary
 void close()
           
protected abstract  T createObject(java.lang.String strippedName, java.lang.Object obj)
           
 boolean hasMore()
           
 boolean hasMoreElements()
           
 T next()
           
 T nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iterator

private java.util.Iterator<T> iterator
Constructor Detail

SimpleNamingContext.AbstractNamingEnumeration

private SimpleNamingContext.AbstractNamingEnumeration(SimpleNamingContext context,
                                                      java.lang.String proot)
                                               throws javax.naming.NamingException
Throws:
javax.naming.NamingException
Method Detail

createObject

protected abstract T createObject(java.lang.String strippedName,
                                  java.lang.Object obj)

hasMore

public boolean hasMore()
Specified by:
hasMore in interface javax.naming.NamingEnumeration<T>

next

public T next()
Specified by:
next in interface javax.naming.NamingEnumeration<T>

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration<T>

nextElement

public T nextElement()
Specified by:
nextElement in interface java.util.Enumeration<T>

close

public void close()
Specified by:
close in interface javax.naming.NamingEnumeration<T>