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.

ClientToServerRpc.java 1.1KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.client.communication;
  5. import java.io.Serializable;
  6. import com.vaadin.terminal.gwt.client.ApplicationConnection;
  7. /**
  8. * Interface to be extended by all client to server RPC interfaces.
  9. *
  10. * The nested interface InitializableClientToServerRpc The
  11. * {@link #initRpc(String, ApplicationConnection)} method is created
  12. * automatically by a GWT generator and must be called on the client side before
  13. * generated implementations of the interface are used to perform RPC calls.
  14. *
  15. * @since 7.0
  16. */
  17. public interface ClientToServerRpc extends Serializable {
  18. /**
  19. * Initialization support for client to server RPC interfaces.
  20. *
  21. * This is in a separate interface instead of {@link ClientToServerRpc}
  22. * because otherwise also server side proxies would have to implement the
  23. * initialization method.
  24. *
  25. * @since 7.0
  26. */
  27. public interface InitializableClientToServerRpc extends ClientToServerRpc {
  28. public void initRpc(String connectorId, ApplicationConnection client);
  29. }
  30. }