01: /*
02: * $Id: IWebApplicationFactory.java 459581 2006-03-02 08:46:15Z ehillenius $
03: * $Revision: 459581 $
04: * $Date: 2006-03-02 09:46:15 +0100 (Thu, 02 Mar 2006) $
05: *
06: * ==============================================================================
07: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
08: * use this file except in compliance with the License. You may obtain a copy of
09: * the License at
10: *
11: * http://www.apache.org/licenses/LICENSE-2.0
12: *
13: * Unless required by applicable law or agreed to in writing, software
14: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16: * License for the specific language governing permissions and limitations under
17: * the License.
18: */
19: package wicket.protocol.http;
20:
21: /**
22: * A factory interface used by wicket servlet to create application objects.
23: * Configure your webapplication to use this factory in web.xml like:
24: *
25: * <pre>
26: *
27: * <init-param>
28: * <param-name>applicationFactoryClassName</param-name>
29: * <param-value>teachscape.platform.web.wicket.SpringApplicationFactory</param-value>
30: * </init-param>
31: *
32: * </pre>
33: *
34: * @author Igor Vaynberg (ivaynberg)
35: */
36: public interface IWebApplicationFactory {
37: /**
38: * Create application object
39: *
40: * @param servlet
41: * the wicket servlet
42: * @return application object instance
43: */
44: WebApplication createApplication(WicketServlet servlet);
45: }
|