T
- The type of the provided object.public final class CodeSplitProvider<T> extends Object implements IndirectProvider<T>
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
.Constructor and Description |
---|
CodeSplitProvider(AsyncProvider<T> provider)
Construct an
IndirectProvider that gets the object using code
splitting and invokes the callback once the code is loaded. |
public CodeSplitProvider(AsyncProvider<T> provider)
IndirectProvider
that gets the object using code
splitting and invokes the callback once the code is loaded.provider
- The AsyncProvider
providing 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.