title: How to create custom annotation with code behind
body: <p>I would like to create my own custom annotation.  My framework is Stand alone java application.  When someone annotate his pojo class a "hidden" code behind will trigger methods.</p>
  
  <p>For example, today in Java EE we have <code>@MessageDriven</code> annotation.
  And when you annotate your class with <code>@MessageDriven</code> and in addition implement MessageListener Interface there is a behind code that will trigger <code>onMessage(Message msg)</code>. when a message arrives from a Queue/Topic.</p>
  
  <p>How Do I create annotation(<code>@MyMessageDriven</code>) which could be added to a pojo and also  implement <code>MyCustomMessageListener</code>. </p>
  
  <p>The result which I desire is a trigger of "hidden" code (of mine) which will trigger a method of an implemented interface (exactly as it works with the sample i Wrote below).</p>