T
- The type of the provided object.public final class StandardProvider<T> extends Object implements IndirectProvider<T>
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
.Constructor and Description |
---|
StandardProvider(javax.inject.Provider<T> provider)
Creates a
IndirectProvider that directly gets the object and
invokes the callback. |
public StandardProvider(javax.inject.Provider<T> provider)
IndirectProvider
that directly gets the object and
invokes the callback.provider
- The Provider
of the object.public void get(AsyncCallback<T> callback)
IndirectProvider
get
in interface IndirectProvider<T>
callback
- The AsyncCallback
to invoke once the object is
available. The parameter to the callback will be the provided
object.Copyright © 2010–2014 Arcbees. All rights reserved.