org.apache.wicket.protocol.http
Interface IWebApplicationFactory

All Known Implementing Classes:
ContextParamWebApplicationFactory, GuiceWebApplicationFactory, SpringWebApplicationFactory

public interface IWebApplicationFactory

A factory interface used by wicket filter to create application objects. Configure your webapplication to use this factory in web.xml like:

 <filter>
   <filter-name>MyApplication</filter-name>
   <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
   <init-param>
     <param-name>applicationClassName</param-name>
     <param-value>org.mycompany.MyApplication</param-value>
   </init-param>
 </filter>
 

Author:
Igor Vaynberg (ivaynberg)

Method Summary
 WebApplication createApplication(WicketFilter filter)
          Create application object
 void destroy(WicketFilter filter)
          Called when the filter instance that used this factory is destroyed
 

Method Detail

createApplication

WebApplication createApplication(WicketFilter filter)
Create application object

Parameters:
filter - the wicket filter
Returns:
application object instance

destroy

void destroy(WicketFilter filter)
Called when the filter instance that used this factory is destroyed

Parameters:
filter - the wicket filter


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.