Class ClientEngineLinker

java.lang.Object
com.google.gwt.core.ext.Linker
com.google.gwt.core.ext.linker.AbstractLinker
com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
com.google.gwt.core.linker.SingleScriptLinker
com.vaadin.flow.linker.ClientEngineLinker

@LinkerOrder(PRIMARY) @Shardable public class ClientEngineLinker extends com.google.gwt.core.linker.SingleScriptLinker
Customized version of SingleScriptLinker which uses a modified version of the single script template ("com/vaadin/flow/linker/ClientEngineSingleScriptTemplate.js"). This is because the template from SingleScriptLinker uses a computeScriptBase function which does a document.write and thus cannot be called deferredly.
Since:
1.0
See Also:
  • SingleScriptLinker
  • Field Summary

    Fields inherited from class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker

    COMPUTE_SCRIPT_BASE_JS, FRAGMENT_EXTENSION, FRAGMENT_SUBDIR, permutationsUtil, PROCESS_METAS_JS, USE_SOURCE_MAPS_PROPERTY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Collection<com.google.gwt.core.ext.linker.Artifact<?>>
    doEmitCompilation(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.CompilationResult result, com.google.gwt.core.ext.linker.ArtifactSet artifacts)
     
    protected com.google.gwt.core.ext.linker.EmittedArtifact
    emitSelectionScript(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.ArtifactSet artifacts)
     
    protected String
    fillSelectionScriptTemplate(StringBuffer selectionScript, com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.ArtifactSet artifacts, com.google.gwt.core.ext.linker.CompilationResult result)
     
     
    protected String
    getSelectionScriptTemplate(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context)
     
    com.google.gwt.core.ext.linker.ArtifactSet
    link(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.ArtifactSet artifacts, boolean onePermutation)
     

    Methods inherited from class com.google.gwt.core.linker.SingleScriptLinker

    getCompilationExtension, getModulePrefix

    Methods inherited from class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker

    charsPerChunk, emitSelectionInformation, generateDeferredFragment, generatePrimaryFragment, generatePrimaryFragmentString, generateSelectionScript, generateSelectionScript, getDeferredFragmentPrefix, getDeferredFragmentSuffix2, getFragmentSubdir, getHostedFilename, getModulePrefix, getModuleSuffix2, getScriptChunkSeparator, link, maybeAddHostedModeFile, maybeOutputPropertyMap, readFileToStringBuffer, replaceAll, splitPrimaryJavaScript, supportsDevModeInJunit, wrapDeferredFragment, wrapPrimaryFragment

    Methods inherited from class com.google.gwt.core.ext.linker.AbstractLinker

    emitBytes, emitBytes, emitInputStream, emitInputStream, emitString, emitString, emitWithStrongName, emitWithStrongName

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

    isShardable, relink

    Methods inherited from class java.lang.Object

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

    • ClientEngineLinker

      public ClientEngineLinker()
  • Method Details

    • getDescription

      public String getDescription()
      Overrides:
      getDescription in class com.google.gwt.core.linker.SingleScriptLinker
    • doEmitCompilation

      protected Collection<com.google.gwt.core.ext.linker.Artifact<?>> doEmitCompilation(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.CompilationResult result, com.google.gwt.core.ext.linker.ArtifactSet artifacts) throws com.google.gwt.core.ext.UnableToCompleteException
      Overrides:
      doEmitCompilation in class com.google.gwt.core.linker.SingleScriptLinker
      Throws:
      com.google.gwt.core.ext.UnableToCompleteException
    • emitSelectionScript

      protected com.google.gwt.core.ext.linker.EmittedArtifact emitSelectionScript(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.ArtifactSet artifacts) throws com.google.gwt.core.ext.UnableToCompleteException
      Overrides:
      emitSelectionScript in class com.google.gwt.core.linker.SingleScriptLinker
      Throws:
      com.google.gwt.core.ext.UnableToCompleteException
    • fillSelectionScriptTemplate

      protected String fillSelectionScriptTemplate(StringBuffer selectionScript, com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.ArtifactSet artifacts, com.google.gwt.core.ext.linker.CompilationResult result) throws com.google.gwt.core.ext.UnableToCompleteException
      Overrides:
      fillSelectionScriptTemplate in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
      Throws:
      com.google.gwt.core.ext.UnableToCompleteException
    • getSelectionScriptTemplate

      protected String getSelectionScriptTemplate(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context) throws com.google.gwt.core.ext.UnableToCompleteException
      Overrides:
      getSelectionScriptTemplate in class com.google.gwt.core.linker.SingleScriptLinker
      Throws:
      com.google.gwt.core.ext.UnableToCompleteException
    • link

      public com.google.gwt.core.ext.linker.ArtifactSet link(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.ArtifactSet artifacts, boolean onePermutation) throws com.google.gwt.core.ext.UnableToCompleteException
      Overrides:
      link in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
      Throws:
      com.google.gwt.core.ext.UnableToCompleteException