| Constructor and Description |
|---|
FormatFilter() |
| Modifier and Type | Method and Description |
|---|---|
FormatFilter |
add(String field,
Formatter formatter)
Adds a formatter for the given field.
|
FormatFilter |
add(String field,
String formatterName)
Adds a formatter which was defined in the FormatterManager.
|
void |
destroy()
Gives a chance to the filter to deallocalte any resources before it is destroyed.
|
String |
filter(InvocationChain chain)
Executes the filter.
|
abstract void |
initFormatters()
Override this abstract method to add formatters for the output fields you want to format.
|
public abstract void initFormatters()
public FormatFilter add(String field, Formatter formatter)
field - The field to format.formatter - The formatter to use.public FormatFilter add(String field, String formatterName)
field - formatterName - The name of the formatter defined in the FormatterManager.public String filter(InvocationChain chain) throws Exception
Filterpublic void destroy()
FilterCopyright © 2015. All Rights Reserved.