Class ContextAwareBase
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, CompressionStrategyBase, Compressor, ConcurrentServerRunner, ConfigurationWatchList, ContextUtil, ConverterSupplierByClassName, DefaultJoranConfigurator, DefaultProcessor, EncoderBase, EventEvaluatorBase, FileNamePattern, FileUtil, Filter, GenericXMLConfigurator, InterruptUtil, LayoutBase, LevelChangePropagator, LoggerContextAwareBase, Matcher, ModelHandlerBase, ModelInterpretationContext, NetworkAddressUtil, OnPrintStreamStatusListenerBase, Parser, PreconditionValidator, PropertiesConfigurator, PropertyConditionBase, PropertyDefinerBase, PropertyEvalScriptBuilder, PropertyModelHandlerHelper, PropertySetter, ReconfigureOnChangeTask, RenameUtil, RollingPolicyBase, SaxEventInterpretationContext, SerializedModelConfigurator, ShutdownHookBase, SimpleRuleStore, SSLParametersConfiguration, 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
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
-