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.

ConnectorInitVisitor.java 620B

12345678910111213141516171819202122
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.widgetsetutils.metadata;
  5. import com.google.gwt.core.ext.typeinfo.JClassType;
  6. import com.vaadin.shared.ui.Connect;
  7. public class ConnectorInitVisitor extends TypeVisitor {
  8. @Override
  9. public void visit(JClassType type, ConnectorBundle bundle) {
  10. if (isConnectedConnector(type)) {
  11. Connect connectAnnotation = type.getAnnotation(Connect.class);
  12. bundle.setIdentifier(type, connectAnnotation.value()
  13. .getCanonicalName());
  14. bundle.setNeedsGwtConstructor(type);
  15. }
  16. }
  17. }