Announcement Announcement Module
Collapse
No announcement yet.
Tricky Issue: Around Advice for scanning target methods parameters Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tricky Issue: Around Advice for scanning target methods parameters

    @Around("execution(* com.abc.processor.*.*(..))")
    public Object examineParameters(ProceedingJoinPoint pjp, ???????????????)
    throws Throwable
    {
    String newPattern = ???????????????????????????
    return pjp.proceed(new Object[] {newPattern});
    }
    -----------------------
    I am trying to build an around advice for printing out all target methods parameters. The problem is that the target methods could have any signatures.

    Is spring AOP even supports ways for capturing any unknown method parameters signatures, so that any parameters are available for an advice method?

  • #2
    You can simply retrieve ALL parameters from the JoinPoint...

    Comment


    • #3
      Originally posted by Marten Deinum View Post
      You can simply retrieve ALL parameters from the JoinPoint...
      Thanks for the tip.

      Comment

      Working...
      X