Class ConnectorBundleLoaderFactory


  • 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 Detail

      • ConnectorBundleLoaderFactory

        public ConnectorBundleLoaderFactory()
    • Method Detail

      • 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)