All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mateu.mdd.vaadin.VaadinResourcesServlet Maven / Gradle / Ivy

There is a newer version: 1.1.60
Show newest version
package io.mateu.mdd.vaadin;


import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.server.DeploymentConfiguration;
import com.vaadin.server.VaadinServlet;

import javax.servlet.annotation.WebServlet;
import java.util.Properties;

@WebServlet(urlPatterns = {"/VAADIN", "/VAADIN/*"}, name = "VaadinResourcesServlet",
        asyncSupported = true, loadOnStartup = 500)
@VaadinServletConfiguration(ui = MateuUI.class, productionMode = false)
public class VaadinResourcesServlet extends VaadinServlet {

    @Override
    protected DeploymentConfiguration createDeploymentConfiguration(Properties initParameters) {

        if ("true".equals(System.getProperty("productionMode")))
            initParameters.setProperty("productionMode", Boolean.toString(true));

        return super.createDeploymentConfiguration(initParameters);
    }

}







© 2015 - 2024 Weber Informatics LLC | Privacy Policy