|
|||||||||||||||||||
This license of Clover is provided to support the development of Flock only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
FlockContext.java | - | 0% | 0% | 0% |
|
1 |
package net.sf.flock.webapp; |
|
2 |
|
|
3 |
import net.sf.flock.SubscriptionManagerI; |
|
4 |
|
|
5 |
/** |
|
6 |
* Provides a thread-local context for the core Flock objects. |
|
7 |
* |
|
8 |
* @version $Revision: 1.3 $ |
|
9 |
* @author $Author: phraktle $ |
|
10 |
*/ |
|
11 |
public class FlockContext { |
|
12 |
|
|
13 |
private static ThreadLocal subscriptionManager = new ThreadLocal(); |
|
14 |
|
|
15 | 0 |
private FlockContext() { |
16 |
} |
|
17 |
|
|
18 | 0 |
public static SubscriptionManagerI getSubscriptionManager() { |
19 | 0 |
return (SubscriptionManagerI)subscriptionManager.get(); |
20 |
} |
|
21 |
|
|
22 | 0 |
public static void setSubscriptionManager(SubscriptionManagerI subscriptionManager) { |
23 | 0 |
FlockContext.subscriptionManager.set(subscriptionManager); |
24 |
} |
|
25 |
|
|
26 |
|
|
27 |
} |
|
28 |
|
|