Is it possible to create multiple split points with a RunAsync call in
a super class.  Quick code example:

public abstract class AbstractClass {

  public abstract void doActualWork(Callback cb);

  public void doAsyncCall(final Callback cb){
      GWT.runAsync(new RunAsyncCallback(){
         public void onFailure(Throwable err){
            Window.alert("code download failure");
         }

         public void onSuccess(){
            doActualWork(cb);
         }
      });
  }
}

public class FirstClass extends AbstractClass{
   public void doActualWork(Callback cb){
     //does actually work and calls Callback
   }
}

public class SecondClass extends AbstractClass{
   public void doActualWork(Callback cb){
     //does some other actually work and calls Callback
   }
}


When I have the concrete implementation of doAsyncCall(Callback cb) in
AbstractClass, I get 1 split point.  When I move the implementation to
each of the sub classes (making the method abstract in AbstractClass),
I get two split points.

Is this the expected output?  Or am I missing something in order to
get multiple split points using the psuedo code above?

Thanks,
Chris....
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to