public class LoggingCollection extends Object implements Collection
Collection which wraps another to provide logging
support.| Constructor and Description |
|---|
LoggingCollection(Collection delegate)
Creates a new
LoggingCollection which
logs to a category corresponding to this class at
the DEBUG level. |
LoggingCollection(Collection delegate,
org.apache.log4j.Logger logger)
Creates a new
LoggingCollection which uses
the specified log at the DEBUG level. |
LoggingCollection(Collection delegate,
org.apache.log4j.Logger logger,
org.apache.log4j.Level level)
Creates a new
LoggingCollection. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object object) |
boolean |
addAll(Collection collection) |
void |
clear() |
boolean |
contains(Object object) |
boolean |
containsAll(Collection collection) |
protected Collection |
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 |
isEmpty() |
Iterator |
iterator() |
boolean |
remove(Object object) |
boolean |
removeAll(Collection collection) |
boolean |
retainAll(Collection collection) |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] array) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCodepublic LoggingCollection(Collection delegate)
LoggingCollection which
logs to a category corresponding to this class at
the DEBUG level.public LoggingCollection(Collection delegate, org.apache.log4j.Logger logger)
LoggingCollection which uses
the specified log at the DEBUG level.public LoggingCollection(Collection delegate, org.apache.log4j.Logger logger, org.apache.log4j.Level level)
LoggingCollection.protected final Collection getDelegate()
protected final org.apache.log4j.Logger getLogger()
protected final org.apache.log4j.Level getLevel()
public int size()
size in interface Collectionpublic boolean isEmpty()
isEmpty in interface Collectionpublic void clear()
clear in interface Collectionpublic boolean add(Object object)
add in interface Collectionpublic boolean remove(Object object)
remove in interface Collectionpublic boolean contains(Object object)
contains in interface Collectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectionpublic boolean addAll(Collection collection)
addAll in interface Collectionpublic boolean containsAll(Collection collection)
containsAll in interface Collectionpublic boolean removeAll(Collection collection)
removeAll in interface Collectionpublic boolean retainAll(Collection collection)
retainAll in interface Collectionpublic Object[] toArray()
toArray in interface Collectionpublic Object[] toArray(Object[] array)
toArray in interface CollectionSee 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.