aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/launcher
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-09-05 19:04:20 +0300
committerLeif Åstrand <leif@vaadin.com>2012-09-05 19:04:20 +0300
commitd1c361e251800c6f7d596ddf79ed1c7569196856 (patch)
tree858d5965870a4810e5db37d8522aaa8064a78825 /uitest/src/com/vaadin/launcher
parent5ab35cc6080653a7e9b25712f637db6c95c183ce (diff)
downloadvaadin-framework-d1c361e251800c6f7d596ddf79ed1c7569196856.tar.gz
vaadin-framework-d1c361e251800c6f7d596ddf79ed1c7569196856.zip
Rename Application to VaadinSession (#9402)
Diffstat (limited to 'uitest/src/com/vaadin/launcher')
-rw-r--r--uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java b/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java
index 34c1cc1fce..4f37a9b505 100644
--- a/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java
+++ b/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java
@@ -29,13 +29,13 @@ import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import com.vaadin.Application;
import com.vaadin.LegacyApplication;
import com.vaadin.server.AbstractUIProvider;
import com.vaadin.server.ApplicationConfiguration;
import com.vaadin.server.LegacyVaadinServlet;
-import com.vaadin.server.ServletApplicationContext;
+import com.vaadin.server.VaadinServletSession;
import com.vaadin.server.UIProvider;
+import com.vaadin.server.VaadinSession;
import com.vaadin.server.WrappedHttpServletRequest;
import com.vaadin.server.WrappedRequest;
import com.vaadin.tests.components.TestBase;
@@ -113,17 +113,17 @@ public class ApplicationRunnerServlet extends LegacyVaadinServlet {
}
@Override
- protected ServletApplicationContext createApplication(
+ protected VaadinServletSession createApplication(
HttpServletRequest request) throws ServletException {
try {
final Class<?> classToRun = getClassToRun();
if (UI.class.isAssignableFrom(classToRun)) {
- ServletApplicationContext application = new ServletApplicationContext();
+ VaadinServletSession application = new VaadinServletSession();
application.addUIProvider(new AbstractUIProvider() {
@Override
public Class<? extends UI> getUIClass(
- Application application, WrappedRequest request) {
+ VaadinSession application, WrappedRequest request) {
return (Class<? extends UI>) classToRun;
}
});
@@ -131,7 +131,7 @@ public class ApplicationRunnerServlet extends LegacyVaadinServlet {
} else if (LegacyApplication.class.isAssignableFrom(classToRun)) {
return super.createApplication(request);
} else if (UIProvider.class.isAssignableFrom(classToRun)) {
- ServletApplicationContext application = new ServletApplicationContext();
+ VaadinServletSession application = new VaadinServletSession();
application
.addUIProvider((UIProvider) classToRun.newInstance());
return application;