Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Logback: the reliable, generic, fast and flexible logging framework. Copyright (C) 1999-2011, QOS.ch. All rights reserved. This program and the accompanying materials are dual-licensed under either the terms of the Eclipse Public License v1.0 as published by the Eclipse Foundation or (per the licensee's choosing) under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.
 
 package ch.qos.logback.core;
 
 import java.util.Map;
 
A context is the main anchorage point of all logback components.

Author(s):
Ceki Gulcu
 
 public interface Context extends PropertyContainer {

  
Return the StatusManager instance in use.

Returns:
the ch.qos.logback.core.status.StatusManager instance in use.
 
A Context can act as a store for various objects used by LOGBack components.

Returns:
The object stored under 'key'.
 
   Object getObject(String key);

  
Store an object under 'key'. If no object can be found, null is returned.

Parameters:
key
value
 
   void putObject(String keyObject value);

  
Get all the properties for this context as a Map. Note that the returned cop might be a copy not the original. Thus, modifying the returned Map will have no effect (on the original.)

Returns:
 
   // public Map<String, String> getPropertyMap();
   
Get the property of this context.
 
   String getProperty(String key);

  
Set a property of this context.
 
   void putProperty(String keyString value);

  
  
Get a copy of the property map

Returns:
Since:
0.9.20
 
Contexts are named objects.

Returns:
the name for this context
 
   String getName();

  
The name of the context can be set only once.

Parameters:
name
 
   void setName(String name);
  
  
The time at which this context was created, expressed in millisecond elapsed since the epoch (1.1.1970).

Returns:
The time as measured when this class was created.
 
   long getBirthTime();
  
  
Object used for synchronization purposes. INTENDED FOR INTERNAL USAGE.
Every context has an ExecutorService which be invoked to execute certain tasks in a separate thread.

Returns:
the executor for this context.
Since:
1.0.0
New to GrepCode? Check out our FAQ X