项目:esup-ecandidat
文件:AppServletJMeter.java
项目: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;
}
@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
项目:Vaadin-SignatureField
文件:TestVaadinService.java
项目: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());
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。