summaryrefslogtreecommitdiffstats
path: root/client-compiler/src
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2015-01-09 08:29:54 +0200
committerHenri Sara <hesara@vaadin.com>2015-01-12 13:00:20 +0000
commit2e0d4f149a9b02e38fe32411d66b715714bd526a (patch)
tree51b1e7d821231d743c855c4ccc6c7dad929ad553 /client-compiler/src
parentd7dbc0fb1b863089108035cd9a4094aacbdbd290 (diff)
downloadvaadin-framework-2e0d4f149a9b02e38fe32411d66b715714bd526a.tar.gz
vaadin-framework-2e0d4f149a9b02e38fe32411d66b715714bd526a.zip
Add @BackgroundMessage annotation (#15373)
Change-Id: Id5367b7b1ef4b7dbabfd58902ac6134222e641ba
Diffstat (limited to 'client-compiler/src')
-rw-r--r--client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ServerRpcVisitor.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ServerRpcVisitor.java b/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ServerRpcVisitor.java
index a1852d5b32..7efdf9db81 100644
--- a/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ServerRpcVisitor.java
+++ b/client-compiler/src/com/vaadin/server/widgetsetutils/metadata/ServerRpcVisitor.java
@@ -24,6 +24,7 @@ import com.google.gwt.core.ext.typeinfo.JClassType;
import com.google.gwt.core.ext.typeinfo.JMethod;
import com.google.gwt.core.ext.typeinfo.JType;
import com.vaadin.client.metadata.TypeDataStore.MethodAttribute;
+import com.vaadin.shared.annotations.BackgroundMessage;
import com.vaadin.shared.annotations.Delayed;
public class ServerRpcVisitor extends TypeVisitor {
@@ -51,6 +52,11 @@ public class ServerRpcVisitor extends TypeVisitor {
}
}
+ if (method.getAnnotation(BackgroundMessage.class) != null) {
+ bundle.setMethodAttribute(type, method,
+ MethodAttribute.BACKGROUND_MESSAGE);
+ }
+
bundle.setNeedsParamTypes(type, method);
JType[] parameterTypes = method.getParameterTypes();