com.google.gwt.core.client.impl
Class CrossSiteLoadingStrategy

java.lang.Object
  extended by com.google.gwt.core.client.impl.CrossSiteLoadingStrategy
All Implemented Interfaces:
AsyncFragmentLoader.LoadingStrategy

public class CrossSiteLoadingStrategy
extends java.lang.Object
implements AsyncFragmentLoader.LoadingStrategy

Load runAsync code using a script tag. The com.google.gwt.core.linker.XSLinker sets __gwtModuleFunction to point at the function that wraps the initially downloaded code. On that function is a property installCode that can be invoked to eval more code in a scope nested somewhere within that function. The loaded script for fragment 123 is expected to invoke __gwtModuleFunction.runAsyncCallback123 with the code to be installed.


Constructor Summary
CrossSiteLoadingStrategy()
           
 
Method Summary
 void startLoadingFragment(int fragment, AsyncFragmentLoader.LoadTerminatedHandler loadFinishedHandler)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrossSiteLoadingStrategy

public CrossSiteLoadingStrategy()
Method Detail

startLoadingFragment

public void startLoadingFragment(int fragment,
                                 AsyncFragmentLoader.LoadTerminatedHandler loadFinishedHandler)
Specified by:
startLoadingFragment in interface AsyncFragmentLoader.LoadingStrategy