Package org.wicketstuff.openlayers3.examples

Source Code of org.wicketstuff.openlayers3.examples.WicketApplication

package org.wicketstuff.openlayers3.examples;

import de.agilecoders.wicket.core.Bootstrap;
import de.agilecoders.wicket.core.settings.BootstrapSettings;
import org.apache.wicket.Page;
import org.apache.wicket.RuntimeConfigurationType;
import org.apache.wicket.protocol.http.WebApplication;
import org.wicketstuff.annotation.scan.AnnotatedMountScanner;

/**
* Provides an application that demonstrates the OpenLayers3 map.
*/
public class WicketApplication extends WebApplication {

    /**
     * Creates a new instance.
     */
    public WicketApplication() {

    }

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

        // scan for annotations
        new AnnotatedMountScanner().scanPackage("org.wicketstuff.openlayers3.examples").mount(this);

        // setup wicket boostrap
        BootstrapSettings settings = new BootstrapSettings();
        Bootstrap.install(this, settings);
    }

    @Override
    public Class<? extends Page> getHomePage() {
        return HomePage.class;
    }

    @Override
    public RuntimeConfigurationType getConfigurationType() {
        return RuntimeConfigurationType.DEVELOPMENT;
    }
}
TOP

Related Classes of org.wicketstuff.openlayers3.examples.WicketApplication

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.