KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > config > backup > StatusRegistry


1 /*
2  * StatusHolder.java
3  *
4  * Created on December 24, 2003, 9:58 AM
5  */

6
7 package com.sun.enterprise.config.backup;
8
9 import com.sun.enterprise.config.backup.status.Status;
10
11 /**
12  *
13  * @author sridatta
14  */

15 public class StatusRegistry {
16     
17     /** Creates a new instance of StatusHolder */
18     public StatusRegistry() {
19     }
20     
21     private static ThreadLocal JavaDoc _threadLocalStatus =
22                             new ThreadLocal JavaDoc();
23
24     public static Status getStatus() {
25         return (Status)_threadLocalStatus.get();
26     }
27
28     public static void setStatus(Status ctx) {
29         _threadLocalStatus.set(ctx);
30     }
31 }
32
Popular Tags