Logback API
Version 0.9.8

ch.qos.logback.core.pattern
Class DynamicConverter<E>

java.lang.Object
  extended by ch.qos.logback.core.pattern.Converter<E>
      extended by ch.qos.logback.core.pattern.FormattingConverter<E>
          extended by ch.qos.logback.core.pattern.DynamicConverter<E>
All Implemented Interfaces:
LifeCycle
Direct Known Subclasses:
AccessConverter, ClassicConverter, DateTokenConverter, IntegerTokenConverter

public abstract class DynamicConverter<E>
extends FormattingConverter<E>
implements LifeCycle


Constructor Summary
DynamicConverter()
           
 
Method Summary
protected  String getFirstOption()
          Return the first option passed to this component.
protected  List getOptionList()
           
 boolean isStarted()
           
 void setOptionList(List optionList)
           
 void start()
          Components that depend on options passed during configuration can override this method in order to make appropriate use of those options.
static void startConverters(Converter head)
          Used to start DynamicConvertes in a chain of converters.
 void stop()
           
 
Methods inherited from class ch.qos.logback.core.pattern.FormattingConverter
getFormattingInfo, setFormattingInfo, spacePad, write
 
Methods inherited from class ch.qos.logback.core.pattern.Converter
convert, getNext, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicConverter

public DynamicConverter()
Method Detail

start

public void start()
Components that depend on options passed during configuration can override this method in order to make appropriate use of those options. For simpler components, the trivial implementation found in this abstract class will be sufficient.

Specified by:
start in interface LifeCycle

stop

public void stop()
Specified by:
stop in interface LifeCycle

isStarted

public boolean isStarted()
Specified by:
isStarted in interface LifeCycle

setOptionList

public void setOptionList(List optionList)

getFirstOption

protected String getFirstOption()
Return the first option passed to this component. The returned value may be null if there are no options.

Returns:
First option, may be null.

getOptionList

protected List getOptionList()

startConverters

public static void startConverters(Converter head)
Used to start DynamicConvertes in a chain of converters.

Parameters:
head -

Logback API
Version 0.9.8

Copyright © 2005-2008 QOS.ch. All Rights Reserved.