title: Passing parameter to same aspect method for different pointcut from xml
body: <p>Is it possible to use same aspect method for multiple pointcuts but with different parameters given from xml?
  Something like this(1 and 2 are parameters) :</p>
  
  <pre><code>&lt;!-- Aspect --&gt;
  &lt;bean id="logAspect" class="LoggingAspect" /&gt;
  &lt;aop:config&gt;
  &lt;aop:aspect id="aspectLoggging" ref="logAspect" &gt;
      &lt;aop:pointcut id="testAround" expression="execution(* methodA(..))" /&gt;
      &lt;aop:pointcut id="testAroundC" expression="execution(* methodC(..))" /&gt;
  
      &lt;!-- @Around --&gt;
      &lt;aop:around method="logProcess(1)" pointcut-ref="testAround" /&gt;
      &lt;aop:around method="logProcess(2)" pointcut-ref="testAroundC" /&gt;
  &lt;/aop:aspect&gt;
  </code></pre>
  
  <p></p>
  
  <p>When I call methodA I want logProcess method to output 1 
  and when I call methodC I want logProcess method to output 2</p>
  
  <p>My logProcess method :</p>
  
  <pre><code>public Object logProcess(ProceedingJoinPoint joinPoint) throws Throwable {}
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/23755006/spring-transactional-wont-rollback-after-putting-aspect-around-method">Spring @Transactional wont rollback after putting aspect around method</a></p>