org.apache.avalon.logging.logkit
Interface FormatterFactory

All Known Implementing Classes:
DefaultFormatterFactory

public interface FormatterFactory

Factory for Formatters.

Version:
$Revision: 1.2 $ $Date: 2004/02/24 21:55:39 $
Author:
Avalon Development Team

Field Summary
static String DEFAULT_FORMAT
           
 
Method Summary
 Formatter createFormatter(Configuration config)
          Creation of a new formatter using a supplied configuration.
 Formatter createFormatter(String type, String pattern)
          Creation of a new formatter.
 

Field Detail

DEFAULT_FORMAT

public static final String DEFAULT_FORMAT
See Also:
Constant Field Values
Method Detail

createFormatter

public Formatter createFormatter(Configuration config)
                          throws IllegalArgumentException
Creation of a new formatter using a supplied configuration.

Parameters:
config - the formatter configuration
Returns:
the formatter instance
Throws:
IllegalArgumentException - if the formatter type is unknown

createFormatter

public Formatter createFormatter(String type,
                                 String pattern)
Creation of a new formatter.

Parameters:
type - the formatter type
pattern - the formatter pattern
Returns:
the formatter


Copyright © The Apache Software Foundation. All Rights Reserved.