rewrote the state management, tx system still to rewrite

This commit is contained in:
Jonas Boner 2009-04-06 19:29:35 +02:00
parent 3e703a53ab
commit 8586110449
17 changed files with 2511 additions and 2450 deletions

View file

@ -196,9 +196,9 @@ interface Stateful {
public String getState(String key);
}
@stateful // TODO: make it possible to add @stateful to interface not impl class
class StatefulImpl implements Stateful {
@Inject private TransientObjectState state;
@state private TransientObjectState state = new TransientObjectState();
public String getState(String key) {
return (String)state.get(key);
}