org.apache.myfaces.shared.trace
Class TracingIterator<E>

java.lang.Object
  extended by org.apache.myfaces.shared.trace.TracingIterator<E>
All Implemented Interfaces:
java.util.Iterator<E>

public class TracingIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>

Trace method calls to an iterator

Version:
$Revision: 676197 $ $Date: 2008-07-12 11:07:17 -0500 (Sat, 12 Jul 2008) $
Author:
Mathias Broekelmann (latest modification by $Author: skitching $)

Constructor Summary
TracingIterator(java.util.Iterator<E> iterator)
           
 
Method Summary
static
<E> TracingIterator<E>
create(java.util.Iterator<E> iterator)
           
 java.util.Iterator<E> getIterator()
           
 java.util.logging.Level getLevel()
           
 java.util.logging.Logger getLogger()
           
 java.lang.String getSourceClass()
           
 boolean hasNext()
           
 E next()
           
 void remove()
           
 void setLevel(java.util.logging.Level level)
           
 void setLogger(java.util.logging.Logger logger)
           
 void setSourceClass(java.lang.String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TracingIterator

public TracingIterator(java.util.Iterator<E> iterator)
Method Detail

create

public static <E> TracingIterator<E> create(java.util.Iterator<E> iterator)

getIterator

public java.util.Iterator<E> getIterator()
Returns:
the iterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<E>

next

public E next()
Specified by:
next in interface java.util.Iterator<E>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<E>

getLevel

public java.util.logging.Level getLevel()
Returns:
See Also:
TracingSupport.getLevel()

getLogger

public java.util.logging.Logger getLogger()
Returns:
See Also:
TracingSupport.getLogger()

getSourceClass

public java.lang.String getSourceClass()
Returns:
See Also:
TracingSupport.getSourceClass()

setLevel

public void setLevel(java.util.logging.Level level)
Parameters:
level -
See Also:
TracingSupport.setLevel(java.util.logging.Level)

setLogger

public void setLogger(java.util.logging.Logger logger)
Parameters:
logger -
See Also:
TracingSupport.setLogger(java.util.logging.Logger)

setSourceClass

public void setSourceClass(java.lang.String className)
Parameters:
className -
See Also:
TracingSupport.setSourceClass(java.lang.String)


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.