What is the best way to wait for multiple asynchronous callback functions to finish in Java before continuing. Specifically I\'m using GWT with AsyncCallback, but I think this i
Just tossing up some ideas:
The callbacks fire some GwtEvent using the HandlerManager. The class containing the ready methods is registered with the HandlerManager as an EventHandler for the events fired by the callback methods, and holds the state (bookAPIAvailable, searchAPIAvailable, appLoaded).
When a event arrives that specific state is changed, and we check if all the states are as desired.
For an example using the GWTEvent, HandlerManager and EventHandler, see http://www.webspin.be/?p=5