Package com.vaadin.flow.linker
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.EmittedArtifactemitSelectionScript(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.ArtifactSet artifacts) protected StringfillSelectionScriptTemplate(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 StringgetSelectionScriptTemplate(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context) com.google.gwt.core.ext.linker.ArtifactSetlink(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, getModulePrefixMethods 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, wrapPrimaryFragmentMethods inherited from class com.google.gwt.core.ext.linker.AbstractLinker
emitBytes, emitBytes, emitInputStream, emitInputStream, emitString, emitString, emitWithStrongName, emitWithStrongNameMethods inherited from class com.google.gwt.core.ext.Linker
isShardable, relink
-
Constructor Details
-
ClientEngineLinker
public ClientEngineLinker()
-
-
Method Details
-
getDescription
- Overrides:
getDescriptionin classcom.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:
doEmitCompilationin classcom.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:
emitSelectionScriptin classcom.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:
fillSelectionScriptTemplatein classcom.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:
getSelectionScriptTemplatein classcom.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:
linkin classcom.google.gwt.core.ext.linker.impl.SelectionScriptLinker- Throws:
com.google.gwt.core.ext.UnableToCompleteException
-