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

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

public class TracingIterator<E>
extends Object
implements Iterator<E>

Trace method calls to an iterator

Version:
$Revision: 1151676 $ $Date: 2011-07-27 19:01:24 -0500 (Wed, 27 Jul 2011) $
Author:
Mathias Broekelmann (latest modification by $Author: lu4242 $)

Constructor Summary
TracingIterator(Iterator<E> iterator)
           
 
Method Summary
static
<E> TracingIterator<E>
create(Iterator<E> iterator)
           
 Iterator<E> getIterator()
           
 Level getLevel()
           
 Logger getLogger()
           
 String getSourceClass()
           
 boolean hasNext()
           
 E next()
           
 void remove()
           
 void setLevel(Level level)
           
 void setLogger(Logger logger)
           
 void setSourceClass(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(Iterator<E> iterator)
Method Detail

create

public static <E> TracingIterator<E> create(Iterator<E> iterator)

getIterator

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

hasNext

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

next

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

remove

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

getLevel

public Level getLevel()
Returns:
See Also:
TracingSupport.getLevel()

getLogger

public Logger getLogger()
Returns:
See Also:
TracingSupport.getLogger()

getSourceClass

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

setLevel

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

setLogger

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

setSourceClass

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


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