com.gwtplatform.common.client
Class StandardProvider<T>
java.lang.Object
com.gwtplatform.common.client.StandardProvider<T>
- Type Parameters:
T - The type of the provided object.
- All Implemented Interfaces:
- IndirectProvider<T>
public final class StandardProvider<T>
- extends Object
- implements IndirectProvider<T>
An IndirectProvider that immediately gets the object and invokes the
callback, without performing code splitting. This is essentially the same as
a standard Provider, but shares the interface of other
IndirectProvider.
- Author:
- Philippe Beaudoin
|
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 |
StandardProvider
public StandardProvider(Provider<T> provider)
- Creates a
IndirectProvider that directly gets the object and
invokes the callback.
- Parameters:
provider - The Provider of the object.
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.