Class AppenderRefDependencyAnalyser
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.model.processor.ModelHandlerBase
ch.qos.logback.core.model.processor.AppenderRefDependencyAnalyser
- All Implemented Interfaces:
ContextAware
The AppenderRefDependencyAnalyser class is responsible for analyzing dependencies
related to appender references within a logging model. This class extends
ModelHandlerBase and operates during the dependency analysis phase of processing.
The primary responsibilities of this class include:
- Identifying instances of
AppenderRefModel within a model hierarchy.
- Substituting references to appender models using the context's interpretation logic.
- Adding dependency definitions for the identified appender references to the interpretation context.-
Field Summary
Fields inherited from class ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectAllAppenderRefModels(List<AppenderRefModel> list, Model model) Recursively processes the given Model object and its submodels, extracting instances of AppenderRefModel and adding them to the provided list.Subclasses should return the subclass of Model that they expect to handle.voidhandle(ModelInterpretationContext mic, Model parentModel) Methods inherited from class ModelHandlerBase
isSupportedModelType, postHandle, toStringMethods inherited from class ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
AppenderRefDependencyAnalyser
-
-
Method Details
-
getSupportedModelClass
Description copied from class:ModelHandlerBaseSubclasses 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.- Overrides:
getSupportedModelClassin classModelHandlerBase- Returns:
- supported model class
- See Also:
-
handle
- Specified by:
handlein classModelHandlerBase- Throws:
ModelHandlerException
-
collectAllAppenderRefModels
Recursively processes the given Model object and its submodels, extracting instances of AppenderRefModel and adding them to the provided list.- Parameters:
list- the list to which AppenderRefModel instances are addedmodel- the root Model object from which to start the extraction
-