/** * Subclasses shall implement to do the real work. * * @see java.util.concurrent.Callable#call() */ public T call() { try { notifyPre(); T cmdResult = _call(); notifyPost(cmdResult, null); return cmdResult; } catch (RuntimeException e) { notifyPost(null, e); throw e; } }
/** * Subclasses shall implement to do the real work. * * @see java.util.concurrent.Callable#call() */ public T call() { try { notifyPre(); T result = _call(); notifyPost(result, null); return result; } catch (RuntimeException e) { notifyPost(null, e); throw e; } }