blob: ce920a78e77c38806213a82eb807c38448bac543 [file] [log] [blame]
/**
*
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Florian Pirchner - Initial implementation
*
*/
package org.eclipse.osbp.ecview.extension.sample;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.server.DeploymentConfiguration;
import com.vaadin.server.ServiceException;
import com.vaadin.server.VaadinServlet;
import com.vaadin.server.VaadinServletService;
/**
* An implementation of VaadinServlet that uses SimpleUI as its base UI.
*/
@SuppressWarnings("serial")
@VaadinServletConfiguration(ui = ECViewGridSampleUI.class, productionMode = false)
public class SimpleVaadinServlet extends VaadinServlet {
/* (non-Javadoc)
* @see com.vaadin.server.VaadinServlet#createServletService(com.vaadin.server.DeploymentConfiguration)
*/
@Override
protected VaadinServletService createServletService(
DeploymentConfiguration deploymentConfiguration)
throws ServiceException {
// see http://dev.vaadin.com/ticket/15516
ServletService service = new ServletService(this,
deploymentConfiguration);
service.init();
return service;
}
}