logahawk.formatters
Class DefaultArgumentFormatterContainer

java.lang.Object
  extended by logahawk.AbstractContainer<ArgumentFormatter>
      extended by logahawk.formatters.DefaultArgumentFormatterContainer
All Implemented Interfaces:
ArgumentFormatterContainer

@ThreadSafe
public class DefaultArgumentFormatterContainer
extends AbstractContainer<ArgumentFormatter>
implements ArgumentFormatterContainer

A basic implementation of ArgumentFormatterContainer.


Field Summary
protected  CollectionArgFormatter collectionArgFormatter
          We use this as the formatter for the call to format(List).
 
Fields inherited from class logahawk.AbstractContainer
items
 
Constructor Summary
DefaultArgumentFormatterContainer()
           
DefaultArgumentFormatterContainer(Collection<ArgumentFormatter> items)
           
 
Method Summary
 String format(List<Object> arguments)
          Formats the provided arguments using a CollectionArgFormatter.
 
Methods inherited from class logahawk.AbstractContainer
add, addAll, clear
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface logahawk.formatters.ArgumentFormatterContainer
add
 

Field Detail

collectionArgFormatter

protected final CollectionArgFormatter collectionArgFormatter
We use this as the formatter for the call to format(List).

Constructor Detail

DefaultArgumentFormatterContainer

public DefaultArgumentFormatterContainer()

DefaultArgumentFormatterContainer

public DefaultArgumentFormatterContainer(Collection<ArgumentFormatter> items)
Method Detail

format

public String format(List<Object> arguments)
Formats the provided arguments using a CollectionArgFormatter.

Specified by:
format in interface ArgumentFormatterContainer