*
* @see org.apache.wicket.protocol.http.WicketFilter#getApplicationFactory()
*/
@Override
protected IWebApplicationFactory getApplicationFactory() {
final IWebApplicationFactory applicationFactory = super.getApplicationFactory();
return new IWebApplicationFactory() {
@Override
public WebApplication createApplication(WicketFilter filter) {
application = applicationFactory.createApplication(filter);
return application;
}
@Override
public void destroy(WicketFilter filter) {
applicationFactory.destroy(filter);
}
};
}