Class OsgiModelHandler
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.model.processor.ModelHandlerBase
org.apache.sling.commons.log.logback.internal.joran.OsgiModelHandler
- All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware
public class OsgiModelHandler
extends ch.qos.logback.core.model.processor.ModelHandlerBase
Handler for the OsgiModel model class
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(ch.qos.logback.core.model.processor.ModelInterpretationContext mic, ch.qos.logback.core.model.Model model) static OsgiModelHandlermakeInstance(ch.qos.logback.core.Context context, ch.qos.logback.core.model.processor.ModelInterpretationContext mic) Factory to create an instance of this classMethods inherited from class ch.qos.logback.core.model.processor.ModelHandlerBase
isSupportedModelType, postHandle, toStringMethods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Constructor Details
-
OsgiModelHandler
public OsgiModelHandler(ch.qos.logback.core.Context context) Constructor- Parameters:
context- the logging context
-
-
Method Details
-
makeInstance
public static OsgiModelHandler makeInstance(ch.qos.logback.core.Context context, ch.qos.logback.core.model.processor.ModelInterpretationContext mic) Factory to create an instance of this class- Parameters:
context- the logging contextmic- the model interpretation context- Returns:
- a new instance of OsgiModelHandler
-
getSupportedModelClass
- Overrides:
getSupportedModelClassin classch.qos.logback.core.model.processor.ModelHandlerBase
-
handle
public void handle(ch.qos.logback.core.model.processor.ModelInterpretationContext mic, ch.qos.logback.core.model.Model model) throws ch.qos.logback.core.model.processor.ModelHandlerException - Specified by:
handlein classch.qos.logback.core.model.processor.ModelHandlerBase- Throws:
ch.qos.logback.core.model.processor.ModelHandlerException
-