1
2
3
4
5
6
7
8
9
10
11 package org.weda.tapestry;
12
13 import org.apache.tapestry.engine.state.StateObjectManager;
14 import org.weda.cache.impl.SimpleCache;
15
16
17 /**
18 *
19 * @author tim
20 */
21 public class LocalStateManager implements StateObjectManager {
22 private ThreadLocal<SimpleCache> cache =
23 new ThreadLocal<SimpleCache>(){
24 protected SimpleCache initialValue() {
25 return new SimpleCache();
26 }
27 };
28
29
30 public void store(Object obj) {
31 }
32
33 public Object get() {
34 return cache.get();
35 }
36
37 public boolean exists() {
38 return true;
39 }
40
41 }