Changeset 1579
- Timestamp:
- 12/07/09 16:45:57 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/java/org/jcoderz/commons/LogThreadContext.java
r1577 r1579 48 48 * @author Andreas Mandel 49 49 */ 50 public class LogThreadContext50 public final class LogThreadContext 51 51 { 52 52 private static final ThreadLocal TREAD_CONTEXT = new ThreadLocal() … … 57 57 } 58 58 }; 59 60 private LogThreadContext () 61 { 62 // No public instances 63 } 59 64 60 65 /** … … 68 73 * for this key, or null if no such value was stored. 69 74 */ 70 public static String put (String key, String value)75 public static String put (String key, String value) 71 76 { 72 77 return ObjectUtil.toString(get().put(key, value)); … … 80 85 * if the selected parameter is not set. 81 86 */ 82 public static String get (String key)87 public static String get (String key) 83 88 { 84 89 return ObjectUtil.toString(get().get(key)); … … 91 96 * if the selected parameter is not set. 92 97 */ 93 public static String remove (String key)98 public static String remove (String key) 94 99 { 95 100 return ObjectUtil.toString(get().remove(key)); … … 103 108 * parameters of the current thread. 104 109 */ 105 public static Map/*<String,String>*/ get ()110 public static Map/*<String,String>*/ get () 106 111 { 107 112 return (Map) TREAD_CONTEXT.get();
