summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/AbstractJavaScriptComponent.java
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-11-20 10:44:45 +0200
committerLeif Åstrand <leif@vaadin.com>2012-11-20 10:47:09 +0200
commitd0d84ec68f2b786a39bff36d091c9b256c9e42c3 (patch)
treecbf5d52bd5ee7e66651817d178e025ca85980cf0 /server/src/com/vaadin/ui/AbstractJavaScriptComponent.java
parent512b541b3edb1dbc919dd1fa757965a766c603ad (diff)
downloadvaadin-framework-d0d84ec68f2b786a39bff36d091c9b256c9e42c3.tar.gz
vaadin-framework-d0d84ec68f2b786a39bff36d091c9b256c9e42c3.zip
Only process RPC invocation if there's a handler for it (#10134)
* RpcManagers lookup by String instead of Class to avoid loading the class sent by the client * Some generics tightened to only accept ServerRpc instances * Remove RpcTarget as it is only supported for ClientConnector Change-Id: I264d58f373db7ea3258cbc28dfc0fa1ec952723d
Diffstat (limited to 'server/src/com/vaadin/ui/AbstractJavaScriptComponent.java')
-rw-r--r--server/src/com/vaadin/ui/AbstractJavaScriptComponent.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/AbstractJavaScriptComponent.java b/server/src/com/vaadin/ui/AbstractJavaScriptComponent.java
index 47420334d7..91547dc79f 100644
--- a/server/src/com/vaadin/ui/AbstractJavaScriptComponent.java
+++ b/server/src/com/vaadin/ui/AbstractJavaScriptComponent.java
@@ -16,6 +16,7 @@
package com.vaadin.ui;
import com.vaadin.server.JavaScriptCallbackHelper;
+import com.vaadin.shared.communication.ServerRpc;
import com.vaadin.shared.ui.JavaScriptComponentState;
/**
@@ -128,7 +129,8 @@ public abstract class AbstractJavaScriptComponent extends AbstractComponent {
this);
@Override
- protected <T> void registerRpc(T implementation, Class<T> rpcInterfaceType) {
+ protected <T extends ServerRpc> void registerRpc(T implementation,
+ Class<T> rpcInterfaceType) {
super.registerRpc(implementation, rpcInterfaceType);
callbackHelper.registerRpc(rpcInterfaceType);
}