Package org.apache.wicket.protocol.http
Class ContextParamWebApplicationFactory
java.lang.Object
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory
- All Implemented Interfaces:
IWebApplicationFactory
Factory that creates application objects based on the class name specified in the
APP_CLASS_PARAM
context variable.- Author:
- Igor Vaynberg (ivaynberg)
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
context parameter name that must contain the class name of the application -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected WebApplication
createApplication
(String applicationClassName) Instantiates the application instance.createApplication
(WicketFilter filter) Create application objectvoid
destroy
(WicketFilter filter) Called when the filter instance that used this factory is destroyed
-
Field Details
-
APP_CLASS_PARAM
context parameter name that must contain the class name of the application- See Also:
-
-
Constructor Details
-
ContextParamWebApplicationFactory
public ContextParamWebApplicationFactory()
-
-
Method Details
-
createApplication
Description copied from interface:IWebApplicationFactory
Create application object- Specified by:
createApplication
in interfaceIWebApplicationFactory
- Parameters:
filter
- the wicket filter- Returns:
- application object instance
-
createApplication
Instantiates the application instance.- Parameters:
applicationClassName
- the classname of the application to create- Returns:
- the web application
-
destroy
Called when the filter instance that used this factory is destroyed- Specified by:
destroy
in interfaceIWebApplicationFactory
- Parameters:
filter
- the wicket filter
-