org.apache.wicket.protocol.http
Class ContextParamWebApplicationFactory

java.lang.Object
  extended by 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 the APP_CLASS_PARAM context variable.

Author:
Igor Vaynberg (ivaynberg)

Field Summary
static java.lang.String APP_CLASS_PARAM
          context parameter name that must contain the class name of the application
 
Constructor Summary
ContextParamWebApplicationFactory()
           
 
Method Summary
protected  WebApplication createApplication(java.lang.String applicationClassName)
          Instantiates the application instance.
 WebApplication createApplication(WicketFilter filter)
          Create application object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
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 interface IWebApplicationFactory
Parameters:
filter - the wicket filter
Returns:
application object instance
See Also:
IWebApplicationFactory.createApplication(WicketFilter)

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


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.