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,serviceUrl);
    logger.info("Using custom Vaadin4Spring servlet service");
    applicationContext = WebApplicationContextUtils.getWebApplicationContext(servlet.getServletContext());
}

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...