org.abstracthorizon.extend.server.deployment.support
Class ModuleClassLoader.Enumerations<T>

java.lang.Object
  extended by org.abstracthorizon.extend.server.deployment.support.ModuleClassLoader.Enumerations<T>
All Implemented Interfaces:
Enumeration<T>
Enclosing class:
ModuleClassLoader

protected class ModuleClassLoader.Enumerations<T>
extends Object
implements Enumeration<T>

Class that implements enumeration interface and enumerates through all enumeration passed to it

Author:
Daniel Sendula

Field Summary
protected  Enumeration<T> currentEnumeration
          Current enumeration (as obtained through iterator)
protected  List<Enumeration<T>> enumerations
          List of enumerations
protected  Iterator<Enumeration<T>> iterator
          Current iterator through enumerations list
 
Constructor Summary
ModuleClassLoader.Enumerations()
          Constructor
 
Method Summary
 void addEnumeration(Enumeration<T> enumeration)
          Adds new enumeration to the object
 boolean hasMoreElements()
          Returns true if more elements are available
 T nextElement()
          Returns next element as would current enumeration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

enumerations

protected List<Enumeration<T>> enumerations
List of enumerations


iterator

protected Iterator<Enumeration<T>> iterator
Current iterator through enumerations list


currentEnumeration

protected Enumeration<T> currentEnumeration
Current enumeration (as obtained through iterator)

Constructor Detail

ModuleClassLoader.Enumerations

public ModuleClassLoader.Enumerations()
Constructor

Method Detail

addEnumeration

public void addEnumeration(Enumeration<T> enumeration)
Adds new enumeration to the object

Parameters:
enumeration - enumeration to be added

hasMoreElements

public boolean hasMoreElements()
Returns true if more elements are available

Specified by:
hasMoreElements in interface Enumeration<T>
Returns:
true if more elements are available

nextElement

public T nextElement()
Returns next element as would current enumeration

Specified by:
nextElement in interface Enumeration<T>
Returns:
new element


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.