Java tutorial
/** * Copyright (c) 2016 Modus Operandi, Inc. * * This is free software: you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License as published by the Free * Software Foundation, either version 3 of the License, or any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. A copy of the GNU Lesser General Public License is distributed along * with this program and can be found at * <http://www.gnu.org/licenses/lgpl.html>. */ package com.modusoperandi.dragonfly.widgets.test; import org.apache.wicket.RuntimeConfigurationType; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.protocol.http.WebApplication; /** * Application object for your web application. If you want to run this application without deploying, run the Start * class. * * @see com.modusoperandi.archivist.ui.Start#main(String[]) */ public class WicketApplication extends WebApplication { /** * @return the class of the default home page * @see org.apache.wicket.Application#getHomePage() */ @Override public Class<? extends WebPage> getHomePage() { return HomePage.class; } /** * @see org.apache.wicket.Application#init() */ @Override public void init() { super.init(); getApplicationSettings().setPageExpiredErrorPage(HomePage.class); } /* * (non-Javadoc) * * @see org.apache.wicket.protocol.http.WebApplication#getConfigurationType() */ @Override public RuntimeConfigurationType getConfigurationType() { // Put Wicket into deployment mode (the default mode is DEVELOPMENT) return RuntimeConfigurationType.DEPLOYMENT; } }