title: Pointcut for specific methods of one class
body: <p>As far as I know, there are two ways to achieve this:</p>
  
  <ol>
  <li>Using annotation based pointcuts:<br>
  Just add annotation to these methods, and use @annotation in pointcut expression.  
  
  <pre class="lang-java prettyprint-override"><code>@Pointcut("@annotation(org.springframework.transaction.annotation.Transactional)")
  public void myPointcut() {}
  </code></pre></li>
  <li>use many many execution expressions
  
  <pre class="lang-java prettyprint-override"><code>@Pointcut("execution(* me.mypackage.MyClass.method0(*))||" +
            "execution(* me.mypackage.MyClass.method1(*))||"+
            "execution(* me.mypackage.MyClass.method2(*))||"+
            "execution(* me.mypackage.MyClass.method3(*))||"+
            "execution(* me.mypackage.MyClass.method4(*))")
  public void myPointcut() {}
  </code></pre></li>
  </ol>
  
  <p>First method should be much more convenient. However I don't want to add additional custom annotations to these methods. In my situation, I just want to make my pointcuts "invisible" for these methods.<br>
  So, I have to use the second method. But it seems too complex for me, is there any way to shorten this expression?</p>