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

public Class DefineModelHandler

extends ModelHandlerBase
Class Inheritance
Imports
ch.qos.logback.core.Context, ch.qos.logback.core.joran.action.ActionUtil, .ActionUtil.Scope, ch.qos.logback.core.model.DefineModel, .Model, ch.qos.logback.core.spi.LifeCycle, .PropertyDefiner, ch.qos.logback.core.util.OptionHelper

Instantiate class for define property value. Get future property name and property definer class from attributes. Some property definer properties could be used. After defining put new property to context.
Author
Aleksey Didik

Field Summary

Modifier and TypeField and Description
pack-priv PropertyDefiner
pack-priv boolean
pack-priv String
pack-priv ActionUtil.Scope

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Class<DefineModel>
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 DefineModelHandler
public void
postHandle(ModelInterpretationContext interpretationContext, Model model)

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

Now property definer is initialized by all properties and we can put property value to context
Inherited from ch.qos.logback.core.model.processor.ModelHandlerBase:
isSupportedModelTypetoString

Field Detail

definerback to summary
pack-priv PropertyDefiner definer
inErrorback to summary
pack-priv boolean inError
propertyNameback to summary
pack-priv String propertyName
scopeback to summary
pack-priv ActionUtil.Scope scope

Constructor Detail

DefineModelHandlerback to summary
public DefineModelHandler(Context context)

Method Detail

getSupportedModelClassback to summary
protected Class<DefineModel> 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<DefineModel>

supported model class

Annotations
@Override
handleback to summary
public void handle(ModelInterpretationContext interpretationContext, Model model) throws ModelHandlerException

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

Annotations
@Override
makeInstanceback to summary
public static DefineModelHandler makeInstance(Context context, ModelInterpretationContext ic)
postHandleback to summary
public void postHandle(ModelInterpretationContext interpretationContext, Model model) throws ModelHandlerException

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

Now property definer is initialized by all properties and we can put property value to context

Annotations
@Override