title: create custom annotations which would run before and after every method in Java
body: <p>I have the following requirement: before each method, I need to perform some set-ups, and, after each method, I need to perform some clean-ups. For example, after each method is executed, I need to dump logs in SQL Server.</p>
  
  <p>How can I create custom annotations for this type of repetitive tasks?</p>
  
  <p>Please note that, due to certain design considerations, I cannot accommodate JUnit in my application.</p>