Class ConnectorBundleLoaderFactory

java.lang.Object
com.google.gwt.core.ext.Generator
com.vaadin.component.spreadsheet.client.ConnectorBundleLoaderFactory
Direct Known Subclasses:
SpreadsheetConnectorBundleLoaderFactory

public class ConnectorBundleLoaderFactory extends com.google.gwt.core.ext.Generator
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.google.gwt.core.ext.Generator

    com.google.gwt.core.ext.Generator.RunsLocal
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    generate(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context, String typeName)
     
    static String
    getBoxedTypeName(com.google.gwt.core.ext.typeinfo.JType type)
     
    static String
    getClassLiteralString(com.google.gwt.core.ext.typeinfo.JType type)
     
    protected Collection<com.google.gwt.core.ext.typeinfo.JClassType>
    getConnectorsForWidgetset(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.typeinfo.TypeOracle typeOracle)
    Returns the connector types that should be included in the widgetset.
    protected com.vaadin.shared.ui.Connect.LoadStyle
    getLoadStyle(com.google.gwt.core.ext.typeinfo.JClassType connectorType)
     
    static void
    writeClassLiteral(com.google.gwt.user.rebind.SourceWriter w, com.google.gwt.core.ext.typeinfo.JType type)
     
    static void
    writeTypeCreator(com.google.gwt.user.rebind.SourceWriter sourceWriter, com.google.gwt.core.ext.typeinfo.JType type)
     

    Methods inherited from class com.google.gwt.core.ext.Generator

    escape, escapeClassName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConnectorBundleLoaderFactory

      public ConnectorBundleLoaderFactory()
  • Method Details

    • generate

      public String generate(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.GeneratorContext context, String typeName) throws com.google.gwt.core.ext.UnableToCompleteException
      Specified by:
      generate in class com.google.gwt.core.ext.Generator
      Throws:
      com.google.gwt.core.ext.UnableToCompleteException
    • writeClassLiteral

      public static void writeClassLiteral(com.google.gwt.user.rebind.SourceWriter w, com.google.gwt.core.ext.typeinfo.JType type)
    • getClassLiteralString

      public static String getClassLiteralString(com.google.gwt.core.ext.typeinfo.JType type)
    • getConnectorsForWidgetset

      protected Collection<com.google.gwt.core.ext.typeinfo.JClassType> getConnectorsForWidgetset(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.typeinfo.TypeOracle typeOracle) throws com.google.gwt.core.ext.UnableToCompleteException
      Returns the connector types that should be included in the widgetset. This method can be overridden to create a widgetset only containing selected connectors.

      The default implementation finds all type implementing ServerConnector that have a @Connect annotation. It also checks that multiple connectors aren't connected to the same server-side class.

      Parameters:
      logger - the logger to which information can be logged
      typeOracle - the type oracle that can be used for finding types
      Returns:
      a collection of all the connector types that should be included in the widgetset
      Throws:
      com.google.gwt.core.ext.UnableToCompleteException - if the operation fails
    • getLoadStyle

      protected com.vaadin.shared.ui.Connect.LoadStyle getLoadStyle(com.google.gwt.core.ext.typeinfo.JClassType connectorType)
    • getBoxedTypeName

      public static String getBoxedTypeName(com.google.gwt.core.ext.typeinfo.JType type)
    • writeTypeCreator

      public static void writeTypeCreator(com.google.gwt.user.rebind.SourceWriter sourceWriter, com.google.gwt.core.ext.typeinfo.JType type)