1 package test.crispy.concurrent; 2 3 import net.sf.crispy.concurrent.AsynchronousCallback; 4 5 public class SystemOutAsynchronousCallback implements AsynchronousCallback { 6 7 public void handleError(Throwable pvThrowable, String pvMethodName) { 8 System.out.println("Handle Error with method: " + pvMethodName + ": " + pvThrowable.getCause()); 9 } 10 11 public void handleResult(Object pvResult, String pvMethodName) { 12 System.out.println("Handle Result with method: " + pvMethodName + " with result: " + pvResult); 13 } 14 15 }