org.apache.naming.resources

Class RecyclableNamingEnumeration

Implemented Interfaces:
NamingEnumeration

public class RecyclableNamingEnumeration
extends java.lang.Object
implements NamingEnumeration

Naming enumeration implementation.

Version:
$Revision: 1.3 $ $Date: 2004/02/27 14:58:54 $

Author:
Remy Maucherat

Field Summary

protected Vector
entries
Entries.
protected Enumeration
enum
Underlying enumeration.

Constructor Summary

RecyclableNamingEnumeration(Vector entries)

Method Summary

void
close()
Closes this enumeration.
boolean
hasMore()
Determines whether there are any more elements in the enumeration.
boolean
hasMoreElements()
Object
next()
Retrieves the next element in the enumeration.
Object
nextElement()

Field Details

entries

protected Vector entries
Entries.


enum

protected Enumeration enum
Underlying enumeration.

Constructor Details

RecyclableNamingEnumeration

public RecyclableNamingEnumeration(Vector entries)

Method Details

close

public void close()
            throws NamingException
Closes this enumeration.


hasMore

public boolean hasMore()
            throws NamingException
Determines whether there are any more elements in the enumeration.


hasMoreElements

public boolean hasMoreElements()


next

public Object next()
            throws NamingException
Retrieves the next element in the enumeration.


nextElement

public Object nextElement()


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.