diff options
author | Leif Åstrand <leif@vaadin.com> | 2014-11-10 20:32:39 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-11-19 12:45:01 +0000 |
commit | 144d9bd12f2feb3c19278f35805753d801a9c808 (patch) | |
tree | eec3a11add3dd721de48a7c388f69bc4f538d5b3 | |
parent | ac81f649549c51318bf442589cc01622f5a8b255 (diff) | |
download | vaadin-framework-144d9bd12f2feb3c19278f35805753d801a9c808.tar.gz vaadin-framework-144d9bd12f2feb3c19278f35805753d801a9c808.zip |
Also disable annotation scanning after redeploy
Change-Id: I67d3374a69416363004e3fad75313296ca636ef8
-rw-r--r-- | uitest/src/com/vaadin/launcher/DevelopmentServerLauncher.java | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/uitest/src/com/vaadin/launcher/DevelopmentServerLauncher.java b/uitest/src/com/vaadin/launcher/DevelopmentServerLauncher.java index 22b075b890..f00a05e810 100644 --- a/uitest/src/com/vaadin/launcher/DevelopmentServerLauncher.java +++ b/uitest/src/com/vaadin/launcher/DevelopmentServerLauncher.java @@ -257,6 +257,7 @@ public class DevelopmentServerLauncher { webappcontext.stop(); server.stop(); webappcontext.start(); + disableAtmosphereAnnotationScan(webappcontext); server.start(); } }); @@ -277,15 +278,7 @@ public class DevelopmentServerLauncher { // Read web.xml to find all configured servlets webappcontext.start(); - // Reconfigure all servlets to avoid startup delay - for (ServletHolder servletHolder : webappcontext.getServletHandler() - .getServlets()) { - if (servletHolder - .getInitParameter("org.atmosphere.cpr.scanClassPath") == null) { - servletHolder.setInitParameter( - "org.atmosphere.cpr.scanClassPath", "false"); - } - } + disableAtmosphereAnnotationScan(webappcontext); try { server.start(); @@ -358,6 +351,19 @@ public class DevelopmentServerLauncher { return "http://localhost:" + port + serverArgs.get("context"); } + private static void disableAtmosphereAnnotationScan( + WebAppContext webappcontext) { + // Reconfigure all servlets to avoid startup delay + for (ServletHolder servletHolder : webappcontext.getServletHandler() + .getServlets()) { + if (servletHolder + .getInitParameter("org.atmosphere.cpr.scanClassPath") == null) { + servletHolder.setInitParameter( + "org.atmosphere.cpr.scanClassPath", "false"); + } + } + } + /** * Assign default value for given key. * |