public class LoggingIterator extends Object implements Iterator
Iterator
which wraps another to provide logging
support.Constructor and Description |
---|
LoggingIterator(Iterator delegate)
Creates a new
LoggingIterator which
logs to a category corresponding to this class at
the DEBUG level. |
LoggingIterator(Iterator delegate,
org.apache.log4j.Logger logger)
Creates a new
LoggingIterator which uses
the specified log at the DEBUG level. |
LoggingIterator(Iterator delegate,
org.apache.log4j.Logger logger,
org.apache.log4j.Level level)
Creates a new
LoggingIterator . |
Modifier and Type | Method and Description |
---|---|
protected Iterator |
getDelegate()
Provides access to internal state so it can be used
by extensions of this class.
|
protected org.apache.log4j.Level |
getLevel()
Provides access to internal state so it can be used
by extensions of this class.
|
protected org.apache.log4j.Logger |
getLogger()
Provides access to internal state so it can be used
by extensions of this class.
|
boolean |
hasNext() |
Object |
next() |
void |
remove() |
public LoggingIterator(Iterator delegate)
LoggingIterator
which
logs to a category corresponding to this class at
the DEBUG level.public LoggingIterator(Iterator delegate, org.apache.log4j.Logger logger)
LoggingIterator
which uses
the specified log at the DEBUG level.public LoggingIterator(Iterator delegate, org.apache.log4j.Logger logger, org.apache.log4j.Level level)
LoggingIterator
.protected final Iterator getDelegate()
protected final org.apache.log4j.Logger getLogger()
protected final org.apache.log4j.Level getLevel()
See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.