Top Description Fields Constructors Methods
ch.qos.logback.core.spi

public Class ContextAwareBase

extends Object
implements ContextAware
Class Inheritance
All Implemented Interfaces
ch.qos.logback.core.spi.ContextAware
Known Direct Subclasses
ch.qos.logback.core.status.OnPrintStreamStatusListenerBase, ch.qos.logback.core.util.ContextUtil, ch.qos.logback.core.util.FileUtil, ch.qos.logback.core.util.InterruptUtil, ch.qos.logback.core.util.NetworkAddressUtil, ch.qos.logback.core.joran.event.stax.StaxEventRecorder, ch.qos.logback.core.LayoutBase, ch.qos.logback.core.AppenderBase, ch.qos.logback.core.PropertyDefinerBase, ch.qos.logback.core.UnsynchronizedAppenderBase, ch.qos.logback.core.boolex.EventEvaluatorBase, ch.qos.logback.core.boolex.Matcher, ch.qos.logback.core.encoder.EncoderBase, ch.qos.logback.core.filter.Filter, ch.qos.logback.core.hook.ShutdownHookBase, ch.qos.logback.core.joran.GenericXMLConfigurator, ch.qos.logback.core.joran.action.Action, ch.qos.logback.core.joran.action.PreconditionValidator, ch.qos.logback.core.joran.conditional.PropertyEvalScriptBuilder, ch.qos.logback.core.joran.sanity.AppenderWithinAppenderSanityChecker, ch.qos.logback.core.joran.spi.ConfigurationWatchList, ch.qos.logback.core.joran.spi.SaxEventInterpretationContext, ch.qos.logback.core.joran.spi.SimpleRuleStore, ch.qos.logback.core.joran.util.AggregationAssessor, ch.qos.logback.core.joran.util.PropertySetter, ch.qos.logback.core.joran.util.beans.BeanDescriptionCache, ch.qos.logback.core.joran.util.beans.BeanDescriptionFactory, ch.qos.logback.core.model.processor.DefaultProcessor, ch.qos.logback.core.model.processor.ModelHandlerBase, ch.qos.logback.core.model.processor.ModelInterpretationContext, ch.qos.logback.core.model.util.PropertyModelHandlerHelper, ch.qos.logback.core.model.util.VariableSubstitutionsHelper, ch.qos.logback.core.net.server.ConcurrentServerRunner, ch.qos.logback.core.net.server.RemoteReceiverStreamClient, ch.qos.logback.core.net.ssl.SSLParametersConfiguration, ch.qos.logback.core.pattern.parser.Compiler, ch.qos.logback.core.pattern.parser.Parser, ch.qos.logback.core.rolling.RollingPolicyBase, ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase, ch.qos.logback.core.rolling.TriggeringPolicyBase, ch.qos.logback.core.rolling.helper.Compressor, ch.qos.logback.core.rolling.helper.FileNamePattern, ch.qos.logback.core.rolling.helper.RenameUtil, ch.qos.logback.core.rolling.helper.TimeBasedArchiveRemover, ch.qos.logback.core.sift.AbstractDiscriminator, ch.qos.logback.core.spi.BasicSequenceNumberGenerator
Imports
ch.qos.logback.core.Context, ch.qos.logback.core.status.ErrorStatus, .InfoStatus, .Status, .StatusManager, .WarnStatus

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

Modifier and TypeField and Description
protected Context
pack-priv final Object
private int

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public void
public void
public void
public void
public Context
protected Object

Returns:

the declared origin, by default 'this'
getDeclaredOrigin
()

The declared origin of status messages.

public StatusManager
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
protected Context context
declaredOriginback to summary
pack-priv final Object declaredOrigin
noContextWarningback to summary
private int noContextWarning

Constructor Detail

ContextAwareBaseback to summary
public ContextAwareBase()
ContextAwareBaseback to summary
public ContextAwareBase(ContextAware declaredOrigin)

Method Detail

addErrorback to summary
public void addError(String msg)

Implements ch.qos.logback.core.spi.ContextAware.addError.

addErrorback to summary
public void addError(String msg, Throwable ex)

Implements ch.qos.logback.core.spi.ContextAware.addError.

addInfoback to summary
public void addInfo(String msg)

Implements ch.qos.logback.core.spi.ContextAware.addInfo.

addInfoback to summary
public void addInfo(String msg, Throwable ex)

Implements ch.qos.logback.core.spi.ContextAware.addInfo.

addStatusback to summary
public void addStatus(Status status)

Implements ch.qos.logback.core.spi.ContextAware.addStatus.

addWarnback to summary
public void addWarn(String msg)

Implements ch.qos.logback.core.spi.ContextAware.addWarn.

addWarnback to summary
public void addWarn(String msg, Throwable ex)

Implements ch.qos.logback.core.spi.ContextAware.addWarn.

getContextback to summary
public Context getContext()

Implements ch.qos.logback.core.spi.ContextAware.getContext.

getDeclaredOriginback to summary
protected Object getDeclaredOrigin()

The declared origin of status messages. By default 'this'. Derived classes may override this method to declare other origin.

Returns:Object

the declared origin, by default 'this'

getStatusManagerback to summary
public StatusManager getStatusManager()
setContextback to summary
public void setContext(Context context)

Implements ch.qos.logback.core.spi.ContextAware.setContext.