View Javadoc

1   package test.crispy.concurrent;
2   
3   import net.sf.crispy.concurrent.AsynchronousCallback;
4   
5   public class AsynchronousCallbackForTests implements AsynchronousCallback {
6   
7   	private Throwable throwable = null;
8   	private String methodName = null;
9   	private Object result = null;
10  	
11  	public void handleError(Throwable pvThrowable, String pvMethodName) {
12  		throwable = pvThrowable;
13  		methodName = pvMethodName;
14  	}
15  
16  	public void handleResult(Object pvResult, String pvMethodName) {
17  		result = pvResult;
18  		methodName = pvMethodName;
19  	}
20  	
21  	public Throwable getThrowable() { return throwable; }
22  	public String getMethodName() { return methodName; }
23  	public Object getResult() { return result; }
24  
25  }