Package org.appfuse.webapp.pages.admin

Source Code of org.appfuse.webapp.pages.admin.Reload

package org.appfuse.webapp.pages.admin;

import org.apache.wicket.RestartResponseException;
import org.apache.wicket.model.ResourceModel;
import org.appfuse.webapp.listener.StartupListener;
import org.appfuse.webapp.AbstractWebPage;
import org.wicketstuff.annotation.mount.MountPath;

/**
* Page for reloading an application configuration.
*
* @author Marcin ZajÄ…czkowski, 2011-02-12
*/
@MountPath("admin/reload")
public class Reload extends AbstractWebPage {

    @Override
    protected void onInitialize() {
        super.onInitialize();

        StartupListener.setupContext(getServletContext());
       
        getSession().info(createDefaultInfoNotificationMessage(new ResourceModel("reload.succeeded")));
        throw new RestartResponseException(getApplication().getHomePage());
    }
}
TOP

Related Classes of org.appfuse.webapp.pages.admin.Reload

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.