summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2013-05-28 14:55:35 +0300
committerLeif Åstrand <leif@vaadin.com>2013-05-28 14:55:35 +0300
commit2b5ba963af81bb8a21f51ab29bd47ecd0054daa6 (patch)
tree34820369bc481fa23972914f45e4be5513ba6303 /server/src/com/vaadin/ui
parente52df7cdf8bbee662f539b1cee7344debb07c586 (diff)
downloadvaadin-framework-2b5ba963af81bb8a21f51ab29bd47ecd0054daa6.tar.gz
vaadin-framework-2b5ba963af81bb8a21f51ab29bd47ecd0054daa6.zip
Define how CurrentInstance works with access() (#11897)
Change-Id: I7ca62c5706fd37e7c44ed46703bcdce159b367f4
Diffstat (limited to 'server/src/com/vaadin/ui')
-rw-r--r--server/src/com/vaadin/ui/UI.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/UI.java b/server/src/com/vaadin/ui/UI.java
index bbc1d0cd33..0b21112c97 100644
--- a/server/src/com/vaadin/ui/UI.java
+++ b/server/src/com/vaadin/ui/UI.java
@@ -1185,9 +1185,14 @@ public abstract class UI extends AbstractSingleComponentContainer implements
* <p>
* Please note that the runnable might be invoked on a different thread or
* later on the current thread, which means that custom thread locals might
- * not have the expected values when the runnable is executed. The UI and
- * other thread locals provided by Vaadin are set properly before executing
- * the runnable.
+ * not have the expected values when the runnable is executed. Inheritable
+ * values in {@link CurrentInstance} will have the same values as when this
+ * method was invoked. {@link UI#getCurrent()},
+ * {@link VaadinSession#getCurrent()} and {@link VaadinService#getCurrent()}
+ * are set according to this UI before executing the runnable.
+ * Non-inheritable CurrentInstance values including
+ * {@link VaadinService#getCurrentRequest()} and
+ * {@link VaadinService#getCurrentResponse()} will not be defined.
* </p>
* <p>
* The returned future can be used to check for task completion and to