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:
ContextAware
,LifeCycle
- Direct Known Subclasses:
ClassicConverter
,CompositeConverter
,DateTokenConverter
,IntegerTokenConverter
public abstract class DynamicConverter<E>
extends FormattingConverter<E>
implements LifeCycle, ContextAware
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
Return the first option passed to this component.boolean
void
setContext
(Context context) void
setOptionList
(List<String> optionList) void
start()
Components that depend on options passed during configuration can override this method in order to make appropriate use of those options.void
stop()
Methods inherited from class ch.qos.logback.core.pattern.FormattingConverter
getFormattingInfo, setFormattingInfo, write
-
Field Details
-
started
Is this component active?
-
-
Constructor Details
-
DynamicConverter
public DynamicConverter()
-
-
Method Details
-
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. -
stop
-
isStarted
-
setOptionList
-
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
-
setContext
- Specified by:
setContext
in interfaceContextAware
-
getContext
- Specified by:
getContext
in interfaceContextAware
-
addStatus
- Specified by:
addStatus
in interfaceContextAware
-
addInfo
- Specified by:
addInfo
in interfaceContextAware
-
addInfo
- Specified by:
addInfo
in interfaceContextAware
-
addWarn
- Specified by:
addWarn
in interfaceContextAware
-
addWarn
- Specified by:
addWarn
in interfaceContextAware
-
addError
- Specified by:
addError
in interfaceContextAware
-
addError
- Specified by:
addError
in interfaceContextAware
-