ch.qos.logback.core
Interface Context

All Superinterfaces:
PropertyContainer
All Known Implementing Classes:
AccessContext, ContextBase, LogbackValve, LoggerContext, RequestLogImpl

public interface Context
extends PropertyContainer


Method Summary
 String getName()
          Contexts are named objects.
 Object getObject(String key)
          A Context can act as a store for various objects used by LOGBack components.
 String getProperty(String key)
          Get the property of this context.
 StatusManager getStatusManager()
           
 void putObject(String key, Object value)
          Store an object under 'key'.
 void putProperty(String key, String value)
          Set a property of this context.
 void setName(String name)
          The name of the context can be set only once.
 

Method Detail

getStatusManager

StatusManager getStatusManager()

getObject

Object getObject(String key)
A Context can act as a store for various objects used by LOGBack components.

Returns:
The object stored under 'key'.

putObject

void putObject(String key,
               Object value)
Store an object under 'key'. If no object can be found, null is returned.

Parameters:
key -
value -

getProperty

String getProperty(String key)
Get the property of this context.

Specified by:
getProperty in interface PropertyContainer

putProperty

void putProperty(String key,
                 String value)
Set a property of this context.


getName

String getName()
Contexts are named objects.

Returns:
the name for this context

setName

void setName(String name)
The name of the context can be set only once.

Parameters:
name -


Copyright © 2005-2009 QOS.ch. All Rights Reserved.