diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2010-10-31 18:42:16 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2010-10-31 18:42:16 +0000 |
commit | 36968773c6ffd5f7eecb1c9248b7e563b7cec4c6 (patch) | |
tree | 8878bd6aa2c209dbb0e2a84615f59d2dd093a759 /src/com/vaadin/terminal/gwt/server/WebApplicationContext.java | |
parent | ddc2961cdb5f3a9641ec4eb909cbef1ced34a934 (diff) | |
download | vaadin-framework-36968773c6ffd5f7eecb1c9248b7e563b7cec4c6.tar.gz vaadin-framework-36968773c6ffd5f7eecb1c9248b7e563b7cec4c6.zip |
CommunicationManager implementation can now be replaced (instantiated via AbstractApplicationServlet) and some protected methods in CommunicationManager are less dependent on Request/Response.
svn changeset:15795/svn branch:6.5
Diffstat (limited to 'src/com/vaadin/terminal/gwt/server/WebApplicationContext.java')
-rw-r--r-- | src/com/vaadin/terminal/gwt/server/WebApplicationContext.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/vaadin/terminal/gwt/server/WebApplicationContext.java b/src/com/vaadin/terminal/gwt/server/WebApplicationContext.java index cd9ec3d34b..dbb44d51d2 100644 --- a/src/com/vaadin/terminal/gwt/server/WebApplicationContext.java +++ b/src/com/vaadin/terminal/gwt/server/WebApplicationContext.java @@ -31,7 +31,7 @@ public class WebApplicationContext extends AbstractWebApplicationContext { * Creates a new Web Application Context. * */ - WebApplicationContext() { + protected WebApplicationContext() { } @@ -92,14 +92,14 @@ public class WebApplicationContext extends AbstractWebApplicationContext { * @param application * @return CommunicationManager */ - protected CommunicationManager getApplicationManager( - Application application, AbstractApplicationServlet servlet) { + public CommunicationManager getApplicationManager(Application application, + AbstractApplicationServlet servlet) { CommunicationManager mgr = (CommunicationManager) applicationToAjaxAppMgrMap .get(application); if (mgr == null) { // Creates new manager - mgr = new CommunicationManager(application); + mgr = servlet.createCommunicationManager(application); applicationToAjaxAppMgrMap.put(application, mgr); } return mgr; |