01: /*
02: * Copyright (c) 2005 Your Corporation. All Rights Reserved.
03: */
04: package org.wings.plaf.css.dwr;
05:
06: import org.directwebremoting.extend.Creator;
07: import org.wings.session.Session;
08: import org.wings.session.SessionManager;
09:
10: import java.util.Map;
11:
12: /**
13: * @author hengels
14: * @author raedler
15: */
16: public class SessionCreator implements Creator {
17: private Object callable;
18: Session session = SessionManager.getSession();
19:
20: public SessionCreator(Object callable) {
21: this .callable = callable;
22: }
23:
24: public void setProperties(Map params)
25: throws IllegalArgumentException {
26: }
27:
28: public Class getType() {
29: return callable.getClass();
30: }
31:
32: public Object getInstance() {
33: return callable;
34: }
35:
36: public String getScope() {
37: return SESSION;
38: }
39:
40: public boolean isCacheable() {
41: return true;
42: }
43:
44: public String getJavascript() {
45: return null;
46: }
47:
48: public Session getSession() {
49: return session;
50: }
51: }
|