com.softwareag.centrasite.appl.framework.persistence.search.impl
Class LazySearchResultList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList
              extended by com.softwareag.centrasite.appl.framework.persistence.search.impl.LazySearchResultList
All Implemented Interfaces:
java.lang.Iterable, java.util.Collection, java.util.List

public class LazySearchResultList
extends java.util.AbstractSequentialList

List implementation containing RegistryBean instances and wrapping JAXR lazy response collection. On each iteration maps the next registry object to RegistryBean by reading it from the bean pool.


Constructor Summary
LazySearchResultList(com.centrasite.jaxr.CentraSiteBulkResponse bulkResponse, ManagedBeanPool beanPool, java.util.List<java.lang.Class<? extends RegistryBean>> beanClasses)
          Constructs an instance of this class.
 
Method Summary
 java.util.ListIterator listIterator(int index)
          
 int size()
          
 
Methods inherited from class java.util.AbstractSequentialList
add, addAll, get, iterator, remove, set
 
Methods inherited from class java.util.AbstractList
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

LazySearchResultList

public LazySearchResultList(com.centrasite.jaxr.CentraSiteBulkResponse bulkResponse,
                            ManagedBeanPool beanPool,
                            java.util.List<java.lang.Class<? extends RegistryBean>> beanClasses)
                     throws CSAppFrameworkException
Constructs an instance of this class.

Parameters:
bulkResponse - The JAXR lazy response object holding the actual result that will be iterated.
beanPool - The BeanPool instance used for reading the RegistryBean instances.
Throws:
CSAppFrameworkException
Method Detail

listIterator

public java.util.ListIterator listIterator(int index)

Specified by:
listIterator in interface java.util.List
Specified by:
listIterator in class java.util.AbstractSequentialList

size

public int size()

Specified by:
size in interface java.util.Collection
Specified by:
size in interface java.util.List
Specified by:
size in class java.util.AbstractCollection