|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.util.LazyRef<E>
E - public abstract class LazyRef<E>
Represents a lazy loaded reference.
| Constructor Summary | |
|---|---|
LazyRef()
|
|
| Method Summary | |
|---|---|
protected abstract E |
fetch()
|
E |
get()
|
Throwable |
getError()
Gets any error that occurred while fetching the lazy loaded value. |
boolean |
isFetched()
Gets whether the lazy loaded reference has been loaded or not. |
void |
requestLoad()
Requests an asynchronous load of the lazy reference. |
void |
requestLoad(Action<Throwable> errorAction)
Requests an asynchronous load of the lazy reference. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LazyRef()
| Method Detail |
|---|
public final E get()
get in interface Ref<E>
protected abstract E fetch()
throws Throwable
Throwablepublic boolean isFetched()
public Throwable getError()
public void requestLoad(Action<Throwable> errorAction)
errorAction - an optional error action to invoke if an exception is thrown
during loading of the reference.public void requestLoad()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||