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

public Class ContextAwareImpl

extends Object
implements ContextAware
Class Inheritance
All Implemented Interfaces
ch.qos.logback.core.spi.ContextAware
Known Direct Subclasses
ch.qos.logback.core.joran.spi.CAI_WithLocatorSupport
Imports
ch.qos.logback.core.Context, ch.qos.logback.core.status.ErrorStatus, .InfoStatus, .Status, .StatusManager, .WarnStatus

A helper class that implements ContextAware methods. Use this class to implement the ContextAware interface by composition.
Author
Ceki Gülcü

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
ContextAwareImpl(Context context, Object origin)

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
public StatusManager
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
protected Context context
noContextWarningback to summary
private int noContextWarning
originback to summary
pack-priv final Object origin

Constructor Detail

ContextAwareImplback to summary
public ContextAwareImpl(Context context, Object origin)

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.

getOriginback to summary
protected Object getOrigin()
getStatusManagerback to summary
public StatusManager getStatusManager()
setContextback to summary
public void setContext(Context context)

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