01: package wicket.quickstart;
02:
03: import org.apache.commons.logging.Log;
04: import org.apache.commons.logging.LogFactory;
05:
06: import wicket.ISessionFactory;
07: import wicket.Session;
08: import wicket.protocol.http.WebApplication;
09:
10: /**
11: * Application object for your web application. If you want to run this application without deploying, run the Start class.
12: *
13: * @see wicket.quickstart.Start#main(String[])
14: */
15: public class QuickStartApplication extends WebApplication {
16: /** Logging */
17: private static final Log log = LogFactory
18: .getLog(QuickStartApplication.class);
19:
20: /**
21: * Constructor
22: */
23: public QuickStartApplication() {
24: }
25:
26: /**
27: * @see wicket.Application#getHomePage()
28: */
29: public Class getHomePage() {
30: return Index.class;
31: }
32:
33: /**
34: * @see wicket.protocol.http.WebApplication#getSessionFactory()
35: */
36: public ISessionFactory getSessionFactory() {
37: return new ISessionFactory() {
38: public Session newSession() {
39: return new QuickStartSession(QuickStartApplication.this);
40: }
41: };
42: }
43: }
|