1 /* 2 * Copyright (C) The Apache Software Foundation. All rights reserved. 3 * 4 * This software is published under the terms of the Apache Software License 5 * version 1.1, a copy of which has been included with this distribution in 6 * the LICENSE.txt file. 7 */ 8 package org.apache.avalon.excalibur.lang; 9 10 import java.util.HashMap; 11 import java.util.Map; 12 import java.util.Iterator; 13 14 /** 15 * The <code>ThreadContextAccessor</code> is the interface through which 16 * ThreadContextPolicy objects access thread context. This is required so 17 * that it can be exposed only to ThreadContextPolicy and not the whole 18 * world. 19 * 20 * @author <a HREF="mailto:peter@apache.org">Peter Donald</a> 21 */ 22 public interface ThreadContextAccessor 23 { 24 /** 25 * Determine if ThreadContext contains specified key. 26 * 27 * @param key the key 28 */ 29 boolean containsKey( String key ); 30 31 /** 32 * Retrieve value for specified key. 33 * 34 * @param key the key 35 */ 36 Object get( String key ); 37 } 38