- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.model.processor.ModelHandlerBase
-
- ch.qos.logback.core.model.processor.ResourceHandlerBase
-
- ch.qos.logback.core.model.processor.IncludeModelHandler
-
- All Implemented Interfaces:
ContextAware
public class IncludeModelHandler extends ResourceHandlerBase
- Since:
- 1.5.5
-
-
Field Summary
-
Fields inherited from class ch.qos.logback.core.model.processor.ResourceHandlerBase
attributeInUse, optional
-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description IncludeModelHandler(Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelbuildModelFromIncludedFile(ContextAwarePropertyContainer capc, URL topURL, Boolean topScan, IncludeModel includeModel)This method is called by logback-tyler at TylerConfigurator run-time.protected Class<IncludeModel>getSupportedModelClass()Subclasses should return the subclass of Model that they expect to handle.voidhandle(ModelInterpretationContext mic, Model model)static IncludeModelHandlermakeInstance(Context context, ModelInterpretationContext mic)SaxEventRecorderpopulateSaxEventRecorder(InputStream inputStream)-
Methods inherited from class ch.qos.logback.core.model.processor.ResourceHandlerBase
attributeToURL, checkAttributes, filePathAsURL, getAttribureInUse, getInputURL, openURL, resourceAsURL, warnIfRequired
-
Methods inherited from class ch.qos.logback.core.model.processor.ModelHandlerBase
isSupportedModelType, postHandle, toString
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Constructor Detail
-
IncludeModelHandler
public IncludeModelHandler(Context context)
-
-
Method Detail
-
makeInstance
public static IncludeModelHandler makeInstance(Context context, ModelInterpretationContext mic)
-
getSupportedModelClass
protected Class<IncludeModel> 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:
ModelHandlerBase.isSupportedModelType(Model)
-
handle
public void handle(ModelInterpretationContext mic, Model model) throws ModelHandlerException
- Specified by:
handlein classModelHandlerBase- Throws:
ModelHandlerException
-
buildModelFromIncludedFile
public Model buildModelFromIncludedFile(ContextAwarePropertyContainer capc, URL topURL, Boolean topScan, IncludeModel includeModel) throws ModelHandlerException
This method is called by logback-tyler at TylerConfigurator run-time.- Parameters:
capc-includeModel-- Throws:
ModelHandlerException- Since:
- 1.5.11
-
populateSaxEventRecorder
public SaxEventRecorder populateSaxEventRecorder(InputStream inputStream) throws JoranException
- Throws:
JoranException
-
-