Java 类com.vaadin.server.DeploymentConfiguration 实例源码

项目:esup-ecandidat    文件:AppServletJMeter.java   
@Override
protected VaadinServletService createServletService(DeploymentConfiguration deploymentConfiguration)
        throws ServiceException {
    JMeterService service = new JMeterService(this, deploymentConfiguration);
    service.init();
    return service;
}
项目:osc-core    文件:UiServlet.java   
@Override
protected VaadinServletService createServletService(DeploymentConfiguration deploymentConfiguration)
        throws ServiceException {
    VaadinServletService servletService = super.createServletService(deploymentConfiguration);
    servletService.addSessionInitListener(e -> e.getSession().addUIProvider(this.uiProvider));
    servletService.addSessionInitListener(e -> sessions.add(e.getSession()));
    servletService.addSessionDestroyListener(e -> sessions.remove(e.getSession()));
    return servletService;
}
项目:vaadin-osgi    文件:BaseVaadinServlet.java   
@Override
protected VaadinServletService createServletService(DeploymentConfiguration deploymentConfiguration) throws ServiceException {
    VaadinServletService servletService = super.createServletService(deploymentConfiguration);
    servletService.addSessionInitListener(new SessionInitListener() {
        @Override
        public void sessionInit(SessionInitEvent sessionInitEvent) throws ServiceException {
            sessionInitEvent.getSession().addUIProvider(provider);
        }
    });
    return servletService;
}
项目:esup-ecandidat    文件:AppServletJMeter.java   
public JMeterService(VaadinServlet servlet,
        DeploymentConfiguration deploymentConfiguration)
        throws ServiceException {
    super(servlet, deploymentConfiguration,null);
}
项目:Vaadin-SignatureField    文件:SignatureFieldDeclarativeTest.java   
@BeforeClass
public static void beforeClass() {
    DeploymentConfiguration conf = new TestDeploymentConfiguration();
    VaadinService service = new TestVaadinService(conf);
    VaadinService.setCurrent(service);
}
项目:Vaadin-SignatureField    文件:TestVaadinService.java   
public TestVaadinService(DeploymentConfiguration deploymentConfiguration) {
    super(deploymentConfiguration);
}
项目:vaadin4spring    文件:Vaadin4SpringServletService.java   
/**
 * Create a servlet service instance that allows the use of a custom service
 * URL.
 *
 * @param servlet
 * @param deploymentConfiguration
 * @param serviceUrl              custom service URL to use (relative to context path, starting
 *                                with a slash) or null for default
 * @throws ServiceException
 */
public Vaadin4SpringServletService(VaadinServlet servlet, DeploymentConfiguration deploymentConfiguration, String serviceUrl) throws ServiceException {
    super(servlet, deploymentConfiguration, serviceUrl);
    logger.info("Using custom Vaadin4Spring servlet service");
    applicationContext = WebApplicationContextUtils.getWebApplicationContext(servlet.getServletContext());
}