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,BasicSequenceNumberGenerator,BeanDescriptionCache,BeanDescriptionFactory,Compressor,ConcurrentServerRunner,ConfigurationWatchList,ContextUtil,CounterBasedEvaluator,DefaultJoranConfigurator,DefaultProcessor,EncoderBase,EventEvaluatorBase,FileNamePattern,FileUtil,Filter,GenericXMLConfigurator,InterruptUtil,LayoutBase,LevelChangePropagator,LoggerContextAwareBase,Matcher,ModelHandlerBase,ModelInterpretationContext,NetworkAddressUtil,OnPrintStreamStatusListenerBase,Parser,PreconditionValidator,PropertyDefinerBase,PropertyEvalScriptBuilder,PropertySetter,ReceiverBase,ReconfigureOnChangeTask,RenameUtil,RollingPolicyBase,SaxEventInterpretationContext,ShutdownHookBase,SimpleRuleStore,SSLParametersConfiguration,StaxEventRecorder,TimeBasedArchiveRemover,TimeBasedFileNamingAndTriggeringPolicyBase,TriggeringPolicyBase,TurboFilter,UnsynchronizedAppenderBase,URLEvaluator
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidprotected ObjectThe declared origin of status messages.voidsetContext(Context context)
-
Field Details
-
context
-
-
Constructor Details
-
ContextAwareBase
public ContextAwareBase() -
ContextAwareBase
-
-
Method Details
-
setContext
- Specified by:
setContextin interfaceContextAware
-
getContext
- Specified by:
getContextin 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:
addStatusin interfaceContextAware
-
addInfo
- Specified by:
addInfoin interfaceContextAware
-
addInfo
- Specified by:
addInfoin interfaceContextAware
-
addWarn
- Specified by:
addWarnin interfaceContextAware
-
addWarn
- Specified by:
addWarnin interfaceContextAware
-
addError
- Specified by:
addErrorin interfaceContextAware
-
addError
- Specified by:
addErrorin interfaceContextAware
-