title: Is it possible to Perform an action when the method exits using an annotation?
body: <p>Is it possible to perform an action at the end of a method, in other words when the function control returns to the caller(either because of exception or normal return) using an annotation ?</p>
  
  <p>Example:</p>
  
  <pre><code>@DoTaskAtMethodReturn
  public void foo() {
  .
  .
  . 
  Method foo Tasks  
  .
  .
  .
  
  return;  --------&gt;  Background task done by annotation hook here before returning to caller.
  }
  </code></pre>