01: /*
02: * $Id: RepeaterApplication.java 460265 2006-04-16 13:36:52Z jdonnerstag $ $Revision:
03: * 4917 $ $Date: 2006-04-16 15:36:52 +0200 (Sun, 16 Apr 2006) $
04: *
05: * ==================================================================== Licensed
06: * under the Apache License, Version 2.0 (the "License"); you may not use this
07: * file except in compliance with the License. You may obtain a copy of the
08: * License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15: * License for the specific language governing permissions and limitations under
16: * the License.
17: */
18: package wicket.examples.repeater;
19:
20: import wicket.markup.html.ServerAndClientTimeFilter;
21: import wicket.protocol.http.WebApplication;
22:
23: /**
24: * application class for repeater examples application
25: *
26: * @author Igor Vaynberg (ivaynberg)
27: *
28: */
29: public class RepeaterApplication extends WebApplication {
30: private ContactsDatabase contactsDB = new ContactsDatabase(50);
31:
32: /**
33: * Constructor.
34: */
35: public RepeaterApplication() {
36: }
37:
38: /**
39: * @see wicket.protocol.http.WebApplication#init()
40: */
41: protected void init() {
42: getRequestCycleSettings().addResponseFilter(
43: new ServerAndClientTimeFilter());
44: }
45:
46: /**
47: * @return contacts database
48: */
49: public ContactsDatabase getContactsDB() {
50: return contactsDB;
51: }
52:
53: /**
54: * @see wicket.Application#getHomePage()
55: */
56: public Class getHomePage() {
57: return Index.class;
58: }
59:
60: }
|