title: How to call a method using annotations in java?
body: <p>I am creating a custom annotation. I want to invoke a method or do some functionalities wherever I apply that annotation. Suppose I create an annotation like <code>@info(message="Invoking xyz method")</code>. Wherever the annotation is to be applied the message will be printed on the console.</p>