You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RpcMethod.java 828B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.client.communication;
  5. import com.vaadin.shared.communication.ClientRpc;
  6. public abstract class RpcMethod {
  7. private String interfaceName;
  8. private String methodName;
  9. private Type[] parameterTypes;
  10. public RpcMethod(String interfaceName, String methodName,
  11. Type... parameterTypes) {
  12. this.interfaceName = interfaceName;
  13. this.methodName = methodName;
  14. this.parameterTypes = parameterTypes;
  15. }
  16. public String getInterfaceName() {
  17. return interfaceName;
  18. }
  19. public String getMethodName() {
  20. return methodName;
  21. }
  22. public Type[] getParameterTypes() {
  23. return parameterTypes;
  24. }
  25. public abstract void applyInvocation(ClientRpc target, Object... parameters);
  26. }