org.apache.avalon.logging.logkit
Class DefaultFormatterFactory
java.lang.Object
org.apache.avalon.logging.logkit.DefaultFormatterFactory
- All Implemented Interfaces:
- FormatterFactory
- public class DefaultFormatterFactory
- extends Object
- implements FormatterFactory
Factory for Formatter-s.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFormatterFactory
public DefaultFormatterFactory()
createFormatter
public Formatter createFormatter(Configuration config)
- Creation of a new formatter using a supplied configuration.
- Specified by:
createFormatter
in interface FormatterFactory
- Parameters:
config
- the formatter configuration
- Returns:
- the formatter instance
- Throws:
IllegalArgumentException
- if the formatter type is unknown
createFormatter
public Formatter createFormatter(String type,
String format)
- Creation of a new formatter.
- Specified by:
createFormatter
in interface FormatterFactory
- Parameters:
type
- the formatter type identifierformat
- the format specification
- Returns:
- the formatter instance
- Throws:
IllegalArgumentException
- if the formatter type is unknown
Copyright © The Apache Software Foundation. All Rights Reserved.