Module ch.qos.logback.classic
Class PropertiesConfiguratorModelHandler
- 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.classic.model.processor.PropertiesConfiguratorModelHandler
-
- All Implemented Interfaces:
ContextAware
public class PropertiesConfiguratorModelHandler extends ResourceHandlerBase
-
-
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 PropertiesConfiguratorModelHandler(Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetachedHandle(ContextAwarePropertyContainer capc, Model model, Boolean topScanBoolean)Used byhandle(ModelInterpretationContext, Model)as well as logback-tyler.protected InputStreamgetInputStream(ContextAwarePropertyContainer capc, ResourceModel resourceModel)voidhandle(ModelInterpretationContext mic, Model model)static PropertiesConfiguratorModelHandlermakeInstance(Context context, ModelInterpretationContext mic)-
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
getSupportedModelClass, 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
-
PropertiesConfiguratorModelHandler
public PropertiesConfiguratorModelHandler(Context context)
-
-
Method Detail
-
makeInstance
public static PropertiesConfiguratorModelHandler makeInstance(Context context, ModelInterpretationContext mic)
-
handle
public void handle(ModelInterpretationContext mic, Model model) throws ModelHandlerException
- Specified by:
handlein classModelHandlerBase- Throws:
ModelHandlerException
-
detachedHandle
public void detachedHandle(ContextAwarePropertyContainer capc, Model model, Boolean topScanBoolean) throws ModelHandlerException
Used byhandle(ModelInterpretationContext, Model)as well as logback-tyler. Note the widening of the base fromModelInterpretationContexttoContextAwarePropertyContainer.- Parameters:
capc-model-- Throws:
ModelHandlerException- Since:
- 1.5.10
-
getInputStream
protected InputStream getInputStream(ContextAwarePropertyContainer capc, ResourceModel resourceModel)
-
-