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 Object implements IWebApplicationFactory
Factory that creates application objects based on the class name specified in theAPP_CLASS_PARAM
context variable.- Author:
- Igor Vaynberg (ivaynberg)
-
-
Field Summary
Fields Modifier and Type Field Description static String
APP_CLASS_PARAM
context 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 WebApplication
createApplication(String applicationClassName)
Instantiates the application instance.WebApplication
createApplication(WicketFilter filter)
Create application objectvoid
destroy(WicketFilter filter)
Called when the filter instance that used this factory is destroyed
-
-
-
Field Detail
-
APP_CLASS_PARAM
public static final String APP_CLASS_PARAM
context parameter name that must contain the class name of the application- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContextParamWebApplicationFactory
public ContextParamWebApplicationFactory()
-
-
Method Detail
-
createApplication
public WebApplication createApplication(WicketFilter filter)
Description copied from interface:IWebApplicationFactory
Create application object- Specified by:
createApplication
in interfaceIWebApplicationFactory
- Parameters:
filter
- the wicket filter- Returns:
- application object instance
-
createApplication
protected WebApplication createApplication(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:
destroy
in interfaceIWebApplicationFactory
- Parameters:
filter
- the wicket filter
-
-