/** * Gets the return value for the given joinpoint. The return values are * returned in the same order as the were recorded. I.e. if for the same * joinpoint first the value "1" and then the value "2" is recorded you'll * get first "1", then "2" as the return value. * * @param joinPoint * the join point * @return the return value */ public Object getReturnValue(final JoinPoint joinPoint) { String statement = JoinPointHelper.getAsLongString(joinPoint); if (SignatureHelper.hasReturnType(joinPoint.getSignature())) { return getReturnValue(statement); } LOG.debug("REPLAY: {}", statement); return null; }
public void log(final JoinPoint joinPoint, final Object returnValue) { String statement = JoinPointHelper.getAsLongString(joinPoint); if ((returnValue != null) && (SignatureHelper.hasReturnType(joinPoint.getSignature()))) { try { saveLazy(statement, returnValue);