|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.util.Promise
public abstract class Promise
A promise, continuation style code for java.
| Constructor Summary | |
|---|---|
Promise()
Get an instance of Promise. |
|
| Method Summary | |
|---|---|
protected abstract java.lang.Object |
execute()
Do the actual work required to get the Object we're promised. |
java.lang.Object |
getObject()
Get the object. |
java.lang.String |
toString()
Print me. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Promise()
| Method Detail |
|---|
public final java.lang.Object getObject()
throws BrokenPromiseException
BrokenPromiseException - if there's a problem getting what
we were promised.public java.lang.String toString()
toString in class java.lang.Object
protected abstract java.lang.Object execute()
throws BrokenPromiseException
BrokenPromiseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||