title: Custom annotation as Interceptor for a method logging
body: <p>Java Gurus,</p>
  
  <p>I am pretty new for <code>annotations</code> and haven't searched for this a lot, so please bear with me...</p>
  
  <p>I would like to implement a <code>Custom Annotation</code> which will <code>intercept</code> a method call; to start with something very basic it can just print the methods name and parameters so that I could avoid the <code>logger</code> statement. </p>
  
  <p>A sample call like this:</p>
  
  <pre><code>public MyAppObject findMyAppObjectById(Long id) throws MyCustomException {
      log.debug("in findMyAppObjectById(" + id + ")");
      //....
  }   
  </code></pre>
  
  <p>can be converted into:</p>
  
  <pre><code>@LogMethodCall(Logger.DEBUG)
  public MyAppObject findMyAppObjectById(Long id) throws MyCustomException {
      //....
  }   
  </code></pre>
  
  <p>Could I get some hints about this? </p>