org.apache.naming.resources
Class RecyclableNamingEnumeration

java.lang.Object
  extended byorg.apache.naming.resources.RecyclableNamingEnumeration
All Implemented Interfaces:
java.util.Enumeration, javax.naming.NamingEnumeration

public class RecyclableNamingEnumeration
extends java.lang.Object
implements javax.naming.NamingEnumeration

Naming enumeration implementation.

Version:
$Id: RecyclableNamingEnumeration.java 939533 2010-04-30 00:56:48Z kkolinko $
Author:
Remy Maucherat

Field Summary
protected  java.util.Vector entries
          Entries.
protected  java.util.Enumeration enumeration
          Underlying enumeration.
 
Constructor Summary
RecyclableNamingEnumeration(java.util.Vector entries)
           
 
Method Summary
 void close()
          Closes this enumeration.
 boolean hasMore()
          Determines whether there are any more elements in the enumeration.
 boolean hasMoreElements()
           
 java.lang.Object next()
          Retrieves the next element in the enumeration.
 java.lang.Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entries

protected java.util.Vector entries
Entries.


enumeration

protected java.util.Enumeration enumeration
Underlying enumeration.

Constructor Detail

RecyclableNamingEnumeration

public RecyclableNamingEnumeration(java.util.Vector entries)
Method Detail

next

public java.lang.Object next()
                      throws javax.naming.NamingException
Retrieves the next element in the enumeration.

Specified by:
next in interface javax.naming.NamingEnumeration
Throws:
javax.naming.NamingException

hasMore

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

Specified by:
hasMore in interface javax.naming.NamingEnumeration
Throws:
javax.naming.NamingException

close

public void close()
           throws javax.naming.NamingException
Closes this enumeration.

Specified by:
close 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


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.