diff options
author | Jani Laakso <jani.laakso@itmill.com> | 2007-10-09 06:12:02 +0000 |
---|---|---|
committer | Jani Laakso <jani.laakso@itmill.com> | 2007-10-09 06:12:02 +0000 |
commit | 5ba28731e951c06ddb3bb9eaa73bfbf207084958 (patch) | |
tree | 283027b45f0a1dc287c4e3e836ebb2bba00b227f /src/com/itmill/toolkit/terminal/gwt/server/WebApplicationContext.java | |
parent | d5e956890c9a08915ecd0e0ebf9f59c42f7edd7c (diff) | |
download | vaadin-framework-5ba28731e951c06ddb3bb9eaa73bfbf207084958.tar.gz vaadin-framework-5ba28731e951c06ddb3bb9eaa73bfbf207084958.zip |
Mass format based on eclipse build in formatting style.
svn changeset:2461/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/terminal/gwt/server/WebApplicationContext.java')
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/server/WebApplicationContext.java | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/server/WebApplicationContext.java b/src/com/itmill/toolkit/terminal/gwt/server/WebApplicationContext.java index e414c0a0b5..30c0070b4f 100644 --- a/src/com/itmill/toolkit/terminal/gwt/server/WebApplicationContext.java +++ b/src/com/itmill/toolkit/terminal/gwt/server/WebApplicationContext.java @@ -56,7 +56,8 @@ import com.itmill.toolkit.ui.Window; * @VERSION@ * @since 3.1 */ -public class WebApplicationContext implements ApplicationContext, HttpSessionBindingListener { +public class WebApplicationContext implements ApplicationContext, + HttpSessionBindingListener { private List listeners; @@ -65,7 +66,7 @@ public class WebApplicationContext implements ApplicationContext, HttpSessionBin private WeakHashMap formActions = new WeakHashMap(); private HashSet applications = new HashSet(); - + private WebBrowser browser = new WebBrowser(); /** @@ -275,7 +276,6 @@ public class WebApplicationContext implements ApplicationContext, HttpSessionBin applications.add(application); } - /** * @see javax.servlet.http.HttpSessionBindingListener#valueBound(HttpSessionBindingEvent) */ @@ -287,8 +287,9 @@ public class WebApplicationContext implements ApplicationContext, HttpSessionBin * @see javax.servlet.http.HttpSessionBindingListener#valueUnbound(HttpSessionBindingEvent) */ public void valueUnbound(HttpSessionBindingEvent event) { - // If we are going to be unbound from the session, the session must be closing - + // If we are going to be unbound from the session, the session must be + // closing + while (!applications.isEmpty()) { Application app = (Application) applications.iterator().next(); app.close(); @@ -296,10 +297,12 @@ public class WebApplicationContext implements ApplicationContext, HttpSessionBin } } - /** Get the web browser associated with this application context. + /** + * Get the web browser associated with this application context. * - * Because application context is related to the http session and server maintains one session per - * browser-instance, each context has exactly one web browser associated with it. + * Because application context is related to the http session and server + * maintains one session per browser-instance, each context has exactly one + * web browser associated with it. * * @return */ |