|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of model being requestedpublic interface ModelRequestCallback<T extends Model>
Passed in as an argument to Controller.requestModel Because a model may need to be initialized via an asynchronous call, the request uses a callback to pass the result back to the caller
| Method Summary | |
|---|---|
void |
onModelReady(T model)
Called when the model is available |
void |
onRequestFail(Throwable cause)
Called when the controller was unable to provide the model |
| Method Detail |
|---|
void onModelReady(T model)
model - the model that was requestedvoid onRequestFail(Throwable cause)
cause - the exception that prevented the model from being provided, or null if the model was simply not located
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||