title: Specific return type on AspectJ around call
body: <p>I am looking to create around advice on methods with a specific return type. I'm curious if something like that is possible. I have this method for example:</p>
  
  <pre><code>@Around("execution(* com.mytest.example.*Resource.*(..))")
  public Object restCallMade(ProceedingJoinPoint pjp) {
      Response response = null;
  
      try {
          response = (Response) pjp.proceed();
  
          // Do other stuff
      } catch (Throwable e) {
  
      }
  
      return response;
  }
  </code></pre>
  
  <p>However, if possible I would like that this advice only gets called if the return type of the method is Response. Is that possible? </p>