FileDocCategorySizeDatePackage
RecyclableNamingEnumeration.javaAPI DocApache Tomcat 6.0.142696Fri Jul 20 04:20:36 BST 2007org.apache.naming.resources

RecyclableNamingEnumeration

public class RecyclableNamingEnumeration extends Object implements NamingEnumeration
Naming enumeration implementation.
author
Remy Maucherat
version
$Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Fields Summary
protected Vector
entries
Entries.
protected Enumeration
enumeration
Underlying enumeration.
Constructors Summary
public RecyclableNamingEnumeration(Vector entries)

        this.entries = entries;
        recycle();
    
Methods Summary
public voidclose()
Closes this enumeration.

    
public booleanhasMore()
Determines whether there are any more elements in the enumeration.

        return enumeration.hasMoreElements();
    
public booleanhasMoreElements()

        return enumeration.hasMoreElements();
    
public java.lang.Objectnext()
Retrieves the next element in the enumeration.

        return nextElement();
    
public java.lang.ObjectnextElement()

        return enumeration.nextElement();
    
voidrecycle()
Recycle.

    	enumeration = entries.elements();