Package ch.qos.logback.core.spi
Class ContextAwareBase
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- All Implemented Interfaces:
ContextAware
- Direct Known Subclasses:
AbstractDiscriminator,Action,AppenderBase,BasicConfigurator,BeanDescriptionCache,BeanDescriptionFactory,ComponentDelegate,Compressor,ConcurrentServerRunner,ConfigurationDelegate,ConfigurationWatchList,ConnectionSourceBase,ContextUtil,DBUtil,EncoderBase,EventEvaluatorBase,FileNamePattern,FileUtil,Filter,GenericConfigurator,InterpretationContext,InterruptUtil,JMXConfigurator,LayoutBase,LevelChangePropagator,LoggerContextAwareBase,Matcher,OnPrintStreamStatusListenerBase,Parser,PropertyDefinerBase,PropertyEvalScriptBuilder,PropertySetter,ReceiverBase,ReconfigureOnChangeTask,RenameUtil,RollingPolicyBase,ShutdownHookBase,SimpleRuleStore,SSLParametersConfiguration,StaxEventRecorder,TimeBasedArchiveRemover,TimeBasedFileNamingAndTriggeringPolicyBase,TriggeringPolicyBase,TurboFilter,UnsynchronizedAppenderBase
public class ContextAwareBase extends Object implements ContextAware
A helper class that implements ContextAware methods. A class can implement the ContextAware interface by deriving from this class.
-
-
Constructor Summary
Constructors Constructor Description ContextAwareBase()ContextAwareBase(ContextAware declaredOrigin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(String msg)voidaddError(String msg, Throwable ex)voidaddInfo(String msg)voidaddInfo(String msg, Throwable ex)voidaddStatus(Status status)voidaddWarn(String msg)voidaddWarn(String msg, Throwable ex)ContextgetContext()StatusManagergetStatusManager()voidsetContext(Context context)
-
-
-
Constructor Detail
-
ContextAwareBase
public ContextAwareBase()
-
ContextAwareBase
public ContextAwareBase(ContextAware declaredOrigin)
-
-
Method Detail
-
setContext
public void setContext(Context context)
- Specified by:
setContextin interfaceContextAware
-
getContext
public Context getContext()
- Specified by:
getContextin interfaceContextAware
-
getStatusManager
public StatusManager getStatusManager()
-
addStatus
public void addStatus(Status status)
- Specified by:
addStatusin interfaceContextAware
-
addInfo
public void addInfo(String msg)
- Specified by:
addInfoin interfaceContextAware
-
addInfo
public void addInfo(String msg, Throwable ex)
- Specified by:
addInfoin interfaceContextAware
-
addWarn
public void addWarn(String msg)
- Specified by:
addWarnin interfaceContextAware
-
addWarn
public void addWarn(String msg, Throwable ex)
- Specified by:
addWarnin interfaceContextAware
-
addError
public void addError(String msg)
- Specified by:
addErrorin interfaceContextAware
-
addError
public void addError(String msg, Throwable ex)
- Specified by:
addErrorin interfaceContextAware
-
-