com.phoenixst.collections

Class LoggingCollection

public class LoggingCollection extends Object implements Collection

A Collection which wraps another to provide logging support.

Since: 1.0

Version: $Revision: 1.10 $

Author: Ray A. Conner

Constructor Summary
LoggingCollection(Collection delegate)
Creates a new LoggingCollection which logs to a category corresponding to this class at the DEBUG level.
LoggingCollection(Collection delegate, Logger logger)
Creates a new LoggingCollection which uses the specified log at the DEBUG level.
LoggingCollection(Collection delegate, Logger logger, Level level)
Creates a new LoggingCollection.
Method Summary
booleanadd(Object object)
booleanaddAll(Collection collection)
voidclear()
booleancontains(Object object)
booleancontainsAll(Collection collection)
protected CollectiongetDelegate()
Provides access to internal state so it can be used by extensions of this class.
protected LevelgetLevel()
Provides access to internal state so it can be used by extensions of this class.
protected LoggergetLogger()
Provides access to internal state so it can be used by extensions of this class.
booleanisEmpty()
Iteratoriterator()
booleanremove(Object object)
booleanremoveAll(Collection collection)
booleanretainAll(Collection collection)
intsize()
Object[]toArray()
Object[]toArray(Object[] array)
StringtoString()

Constructor Detail

LoggingCollection

public LoggingCollection(Collection delegate)
Creates a new LoggingCollection which logs to a category corresponding to this class at the DEBUG level.

LoggingCollection

public LoggingCollection(Collection delegate, Logger logger)
Creates a new LoggingCollection which uses the specified log at the DEBUG level.

LoggingCollection

public LoggingCollection(Collection delegate, Logger logger, Level level)
Creates a new LoggingCollection.

Method Detail

add

public boolean add(Object object)

addAll

public boolean addAll(Collection collection)

clear

public void clear()

contains

public boolean contains(Object object)

containsAll

public boolean containsAll(Collection collection)

getDelegate

protected final Collection getDelegate()
Provides access to internal state so it can be used by extensions of this class.

getLevel

protected final Level getLevel()
Provides access to internal state so it can be used by extensions of this class.

getLogger

protected final Logger getLogger()
Provides access to internal state so it can be used by extensions of this class.

isEmpty

public boolean isEmpty()

iterator

public Iterator iterator()

remove

public boolean remove(Object object)

removeAll

public boolean removeAll(Collection collection)

retainAll

public boolean retainAll(Collection collection)

size

public int size()

toArray

public Object[] toArray()

toArray

public Object[] toArray(Object[] array)

toString

public String toString()
See the Plexus project home, hosted by SourceForge.
Copyright B) 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.