private static Object atmosphereInitRaceConditionWorkaroundLock = new Object();
public PushRequestHandler(VaadinServletService service)
throws ServiceException {
final ServletConfig vaadinServletConfig = service.getServlet()
.getServletConfig();
atmosphere = new AtmosphereFramework() {
@Override
protected void analytics() {
// Overridden to disable version number check
}
@Override
public AtmosphereFramework addInitParameter(String name,
String value) {
if (vaadinServletConfig.getInitParameter(name) == null) {
super.addInitParameter(name, value);
}
return this;
}
};