com.gwtplatform.common.client
Class CodeSplitProvider<T>

java.lang.Object
  extended by com.gwtplatform.common.client.CodeSplitProvider<T>
Type Parameters:
T - The type of the provided object.
All Implemented Interfaces:
IndirectProvider<T>

public final class CodeSplitProvider<T>
extends Object
implements IndirectProvider<T>

An IndirectProvider that gets the object using code splitting and invokes the callback once the code is loaded. This is essentially the same as a standard AsyncProvider, but shares the interface of other IndirectProvider.

Author:
Philippe Beaudoin

Constructor Summary
CodeSplitProvider(AsyncProvider<T> provider)
          Construct an IndirectProvider that gets the object using code splitting and invokes the callback once the code is loaded.
 
Method Summary
 void get(AsyncCallback<T> callback)
          Asynchronously get the provided object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeSplitProvider

public CodeSplitProvider(AsyncProvider<T> provider)
Construct an IndirectProvider that gets the object using code splitting and invokes the callback once the code is loaded.

Parameters:
provider - The AsyncProvider providing the object.
Method Detail

get

public void get(AsyncCallback<T> callback)
Description copied from interface: IndirectProvider
Asynchronously get the provided object.

Specified by:
get in interface IndirectProvider<T>
Parameters:
callback - The AsyncCallback to invoke once the object is available. The parameter to the callback will be the provided object.


Copyright © 2010-2011 ArcBees. All Rights Reserved.