ch.qos.logback.core.pattern
Class DynamicConverter<E>
java.lang.Object
ch.qos.logback.core.pattern.Converter<E>
ch.qos.logback.core.pattern.FormattingConverter<E>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicConverter
public DynamicConverter()
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
-
Copyright © 2005-2008 QOS.ch. All Rights Reserved.