com.modusoperandi.dragonfly.widgets.chart.ChartWidgetApplication.java Source code

Java tutorial

Introduction

Here is the source code for com.modusoperandi.dragonfly.widgets.chart.ChartWidgetApplication.java

Source

/**
 * 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.chart;

import java.util.logging.Logger;
import org.apache.wicket.RuntimeConfigurationType;
import org.apache.wicket.protocol.http.WebApplication;

/**
 * The Class ChartWidgetApplication - Wicket controller for the chart widget
 */
public class ChartWidgetApplication extends WebApplication {

    private static final Logger LOGGER = Logger.getLogger(ChartWidgetApplication.class.getName());

    /**
     * Instantiates a new ChartWidgetApplication.
     */
    public ChartWidgetApplication() {

        LOGGER.info("Starting");
    }

    /*
     * (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;

        // return RuntimeConfigurationType.DEVELOPMENT; // NOSONAR - For development
    }

    /*
     * (non-Javadoc)
     * 
     * @see org.apache.wicket.Application#getHomePage()
     */
    @Override
    public Class<ChartWidgetPage> getHomePage() {

        return ChartWidgetPage.class;
    }

    @Override
    public void init() {

        super.init();

        mountPage("/ScatterChart", ScatterChartPage.class);
    }
}