Top Description Fields Constructors Methods
ch.qos.logback.classic.model.processor

public Class ConfigurationModelHandler

extends ModelHandlerBase
Class Inheritance
Known Direct Subclasses
ch.qos.logback.classic.model.processor.ConfigurationModelHandlerFull
Imports
ch.qos.logback.classic.LoggerContext, ch.qos.logback.classic.model.ConfigurationModel, ch.qos.logback.core.Context, ch.qos.logback.core.model.Model, ch.qos.logback.core.model.processor.ModelHandlerBase, .ModelInterpretationContext, ch.qos.logback.core.status.OnConsoleStatusListener, ch.qos.logback.core.util.ContextUtil, .Duration, .OptionHelper, .StatusListenerConfigHelper

In 1.3.9/1.49, ConfigurationModelHandler has been reduced in functionality and no longer initiates a reconfiguration task. This change was justified by the need to remove java.xml reachability. See also LOGBACK-1717.

See ConfigurationModelHandlerFull subclass offering configuration reloading support.

Field Summary

Modifier and TypeField and Description
pack-priv static final Duration

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Class<ConfigurationModel>
getSupportedModelClass()

Overrides ch.qos.logback.core.model.processor.ModelHandlerBase.getSupportedModelClass.

Subclasses should return the subclass of Model that they expect to handle.
public void
public static ModelHandlerBase
protected void
Inherited from ch.qos.logback.core.model.processor.ModelHandlerBase:
isSupportedModelTypepostHandletoString

Field Detail

SCAN_PERIOD_DEFAULTback to summary
pack-priv static final Duration SCAN_PERIOD_DEFAULT

Constructor Detail

ConfigurationModelHandlerback to summary
public ConfigurationModelHandler(Context context)

Method Detail

getSupportedModelClassback to summary
protected Class<ConfigurationModel> getSupportedModelClass()

Overrides ch.qos.logback.core.model.processor.ModelHandlerBase.getSupportedModelClass.

Doc from ch.qos.logback.core.model.processor.ModelHandlerBase.getSupportedModelClass.

Subclasses should return the subclass of Model that they expect to handle. The default implementation assumes that all Model classes are supported. This a very lax assumption which is usually not true.

Returns:Class<ConfigurationModel>

supported model class

handleback to summary
public void handle(ModelInterpretationContext mic, Model model)

Implements abstract ch.qos.logback.core.model.processor.ModelHandlerBase.handle.

Annotations
@Override
makeInstanceback to summary
public static ModelHandlerBase makeInstance(Context context, ModelInterpretationContext mic)
processScanAttribback to summary
protected void processScanAttrib(ModelInterpretationContext mic, ConfigurationModel configurationModel)