@Override public Object proceed() throws Throwable { return this.methodInvocation.invocableClone().proceed(); }
@Override public Object proceed(Object[] arguments) throws Throwable { Assert.notNull(arguments, "Argument array passed to proceed cannot be null"); if (arguments.length != this.methodInvocation.getArguments().length) { throw new IllegalArgumentException("Expecting " + this.methodInvocation.getArguments().length + " arguments to proceed, " + "but was passed " + arguments.length + " arguments"); } this.methodInvocation.setArguments(arguments); return this.methodInvocation.invocableClone(arguments).proceed(); }
public Object doWithRetry(RetryContext context) throws Exception { context.setAttribute(RetryContext.NAME, label); /* * If we don't copy the invocation carefully it won't keep a reference to * the other interceptors in the chain. We don't have a choice here but to * specialise to ReflectiveMethodInvocation (but how often would another * implementation come along?). */ if (invocation instanceof ProxyMethodInvocation) { try { return ((ProxyMethodInvocation) invocation).invocableClone().proceed(); } catch (Exception e) { throw e; } catch (Error e) { throw e; } catch (Throwable e) { throw new IllegalStateException(e); } } else { throw new IllegalStateException( "MethodInvocation of the wrong type detected - this should not happen with Spring AOP, " + "so please raise an issue if you see this exception"); } }
clone = ((ProxyMethodInvocation) invocation).invocableClone();
@Override public Object cloneAndExecute() throws Exception { try { /* * If we don't copy the invocation carefully it won't keep a reference to the other * interceptors in the chain. */ if (invocation instanceof ProxyMethodInvocation) { return ((ProxyMethodInvocation) invocation).invocableClone().proceed(); } else { throw new IllegalStateException( "MethodInvocation of the wrong type detected - this should not happen with Spring AOP," + " so please raise an issue if you see this exception"); } } catch (Exception e) { //NOSONAR - catch necessary so we can wrap Errors throw e; } catch (Throwable e) { //NOSONAR - ok to catch; unwrapped and rethrown below throw new ThrowableHolderException(e); } } }, invocationThis, message);
@Override public Object invoke(MethodInvocation invocation) throws Throwable { ((ProxyMethodInvocation) invocation).invocableClone().proceed(); return invocation.proceed(); }
@Override public Object proceed() throws Throwable { return this.methodInvocation.invocableClone().proceed(); }
@Override public Object proceed(Object[] arguments) throws Throwable { Assert.notNull(arguments, "Argument array passed to proceed cannot be null"); if (arguments.length != this.methodInvocation.getArguments().length) { throw new IllegalArgumentException("Expecting " + this.methodInvocation.getArguments().length + " arguments to proceed, " + "but was passed " + arguments.length + " arguments"); } this.methodInvocation.setArguments(arguments); return this.methodInvocation.invocableClone(arguments).proceed(); }
@Override public Object cloneAndExecute() throws Exception { try { /* * If we don't copy the invocation carefully it won't keep a reference to the other * interceptors in the chain. */ if (invocation instanceof ProxyMethodInvocation) { return ((ProxyMethodInvocation) invocation).invocableClone().proceed(); } else { throw new IllegalStateException( "MethodInvocation of the wrong type detected - this should not happen with Spring AOP," + " so please raise an issue if you see this exception"); } } catch (Exception e) { //NOSONAR - catch necessary so we can wrap Errors throw e; } catch (Throwable e) { //NOSONAR - ok to catch; unwrapped and rethrown below throw new ThrowableHolderException(e); } } }, invocationThis, message);
public Object doWithRetry(RetryContext context) throws Exception { context.setAttribute(RetryContext.NAME, label); /* * If we don't copy the invocation carefully it won't keep a reference to * the other interceptors in the chain. We don't have a choice here but to * specialise to ReflectiveMethodInvocation (but how often would another * implementation come along?). */ if (invocation instanceof ProxyMethodInvocation) { try { return ((ProxyMethodInvocation) invocation).invocableClone().proceed(); } catch (Exception e) { throw e; } catch (Error e) { throw e; } catch (Throwable e) { throw new IllegalStateException(e); } } else { throw new IllegalStateException( "MethodInvocation of the wrong type detected - this should not happen with Spring AOP, " + "so please raise an issue if you see this exception"); } }
@Override public Object proceed(Object[] arguments) throws Throwable { Assert.notNull(arguments, "Argument array passed to proceed cannot be null"); if (arguments.length != this.methodInvocation.getArguments().length) { throw new IllegalArgumentException("Expecting " + this.methodInvocation.getArguments().length + " arguments to proceed, " + "but was passed " + arguments.length + " arguments"); } this.methodInvocation.setArguments(arguments); return this.methodInvocation.invocableClone(arguments).proceed(); }
clone = ((ProxyMethodInvocation) invocation).invocableClone();