|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.spy.util.Promise
A promise, continuation style code for java.
| Constructor Summary | |
Promise()
Get an instance of Promise. |
|
| Method Summary | |
protected abstract Object |
execute()
Do the actual work required to get the Object we're promised. |
Object |
getObject()
Get the object. |
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 Object getObject()
throws BrokenPromiseException
BrokenPromiseException - if there's a problem getting what
we were promised.public String toString()
protected abstract Object execute()
throws BrokenPromiseException
BrokenPromiseException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||