title: Aspect by method annotation not being executed
body: <p>I am trying to create an aspect to monitor the time execution of certain methods. I define the annotation as:</p>
  
  <pre><code>@Retention(RetentionPolicy.RUNTIME)
  @Target(
  {
      ElementType.METHOD, 
      ElementType.TYPE
  })
  public @interface TimePerformance {
  
  }
  </code></pre>
  
  <p>And this is the aspect code:</p>
  
  <pre><code>@Around("execution(* *(..)) &amp;&amp; @annotation(timePerformance)")
      public Object  timePerformance(ProceedingJoinPoint pjp,TimePerformance timePerformance) throws Throwable {
  
          if (LOG.isInfoEnabled()) {
               LOG.info("AOP - Before executing "+pjp.getSignature());
          }
  
          Long startTime = System.currentTimeMillis();
  
          Object result = pjp.proceed();
  
          Long stopTime = System.currentTimeMillis();
  
          LOG.info("MONITOR TIME_EXECUTION "+pjp.getSignature()+" : "+(stopTime-startTime));
  
          if (LOG.isInfoEnabled()) {
               LOG.info("AOP - After  executing "+pjp.getSignature());
          }
  
          return result;
  
      }
  </code></pre>
  
  <p>And the configuration is:</p>
  
  <pre><code>&lt;!-- AOP support --&gt;
  &lt;bean id='stateAspectImpl' class='eu.genetwister.snpaware.ui.aspect.StateAspectImpl' /&gt;
   &lt;bean id='monitorImpl' class='eu.genetwister.snpaware.monitor.MonitorImpl' /&gt;
  &lt;aop:aspectj-autoproxy&gt;
      &lt;aop:include name='stateAspectImpl' /&gt;
       &lt;aop:include name='monitorImpl' /&gt;
  &lt;/aop:aspectj-autoproxy&gt;
  </code></pre>
  
  <p></p>
  
  <p>I have been annotated a method (part of a spring batch job) like this:</p>
  
  <pre><code>@BeforeStep
      @TimePerformance
      public void retrieveInterstepData(StepExecution stepExecution)
  </code></pre>
  
  <p>But the aspect is never being executed, even if the method is executed.</p>
  
  <p>Does anyone an idea about how to solve this?</p>
  
  <p>Thanks</p>