Package org.apache.wicket.protocol.http
Class ContextParamWebApplicationFactory
- java.lang.Object
-
- org.apache.wicket.protocol.http.ContextParamWebApplicationFactory
-
- All Implemented Interfaces:
IWebApplicationFactory
public class ContextParamWebApplicationFactory extends java.lang.Object implements IWebApplicationFactory
Factory that creates application objects based on the class name specified in theAPP_CLASS_PARAMcontext variable.- Author:
- Igor Vaynberg (ivaynberg)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAPP_CLASS_PARAMcontext parameter name that must contain the class name of the application
-
Constructor Summary
Constructors Constructor Description ContextParamWebApplicationFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WebApplicationcreateApplication(java.lang.String applicationClassName)Instantiates the application instance.WebApplicationcreateApplication(WicketFilter filter)Create application objectvoiddestroy(WicketFilter filter)Called when the filter instance that used this factory is destroyed
-
-
-
Field Detail
-
APP_CLASS_PARAM
public static final java.lang.String APP_CLASS_PARAM
context parameter name that must contain the class name of the application- See Also:
- Constant Field Values
-
-
Method Detail
-
createApplication
public WebApplication createApplication(WicketFilter filter)
Description copied from interface:IWebApplicationFactoryCreate application object- Specified by:
createApplicationin interfaceIWebApplicationFactory- Parameters:
filter- the wicket filter- Returns:
- application object instance
-
createApplication
protected WebApplication createApplication(java.lang.String applicationClassName)
Instantiates the application instance.- Parameters:
applicationClassName- the classname of the application to create- Returns:
- the web application
-
destroy
public void destroy(WicketFilter filter)
Called when the filter instance that used this factory is destroyed- Specified by:
destroyin interfaceIWebApplicationFactory- Parameters:
filter- the wicket filter
-
-