java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
- All Implemented Interfaces:
ContextAware
- Direct Known Subclasses:
AbstractDiscriminator
,Action
,AggregationAssessor
,AppenderBase
,AppenderWithinAppenderSanityChecker
,BasicConfigurator
,BasicSequenceNumberGenerator
,BeanDescriptionCache
,BeanDescriptionFactory
,Compressor
,ConcurrentServerRunner
,ConfigurationWatchList
,ContextUtil
,DefaultJoranConfigurator
,DefaultProcessor
,EncoderBase
,EventEvaluatorBase
,FileNamePattern
,FileUtil
,Filter
,GenericXMLConfigurator
,IfNestedWithinSecondPhaseElementSC
,InterruptUtil
,LayoutBase
,LevelChangePropagator
,LoggerContextAwareBase
,Matcher
,ModelHandlerBase
,ModelInterpretationContext
,NetworkAddressUtil
,OnPrintStreamStatusListenerBase
,Parser
,PreconditionValidator
,PropertyDefinerBase
,PropertyEvalScriptBuilder
,PropertyModelHandlerHelper
,PropertySetter
,ReceiverBase
,ReconfigureOnChangeTask
,RenameUtil
,RollingPolicyBase
,SaxEventInterpretationContext
,SerializedModelConfigurator
,ShutdownHookBase
,SimpleRuleStore
,SSLParametersConfiguration
,StaxEventRecorder
,TimeBasedArchiveRemover
,TimeBasedFileNamingAndTriggeringPolicyBase
,TriggeringPolicyBase
,TurboFilter
,TylerConfiguratorBase
,UnsynchronizedAppenderBase
,VariableModelHelper
,VariableSubstitutionsHelper
A helper class that implements ContextAware methods. A class can implement
the ContextAware interface by deriving from this class.
- Author:
- Ceki Gülcü
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
protected Object
The declared origin of status messages.void
setContext
(Context context)
-
Field Details
-
context
-
-
Constructor Details
-
ContextAwareBase
public ContextAwareBase() -
ContextAwareBase
-
-
Method Details
-
setContext
- Specified by:
setContext
in interfaceContextAware
-
getContext
- Specified by:
getContext
in interfaceContextAware
-
getStatusManager
-
getDeclaredOrigin
The declared origin of status messages. By default 'this'. Derived classes may override this method to declare other origin.- Returns:
- the declared origin, by default 'this'
-
addStatus
- Specified by:
addStatus
in interfaceContextAware
-
addInfo
- Specified by:
addInfo
in interfaceContextAware
-
addInfo
- Specified by:
addInfo
in interfaceContextAware
-
addWarn
- Specified by:
addWarn
in interfaceContextAware
-
addWarn
- Specified by:
addWarn
in interfaceContextAware
-
addError
- Specified by:
addError
in interfaceContextAware
-
addError
- Specified by:
addError
in interfaceContextAware
-