This discussion is archived
8 Replies Latest reply: Aug 3, 2009 6:18 AM by 843793 RSS

simple example of a custom annotation    for log

513500 Newbie
Currently Being Moderated
Please help me write me my custom annotations. I like to use them to provide log ,security etc . I did not find articles where I can write my annotation to change the behaviour. Suppoe I decare annotation on a method , I want jvm to call code in my annotation where I can control the behaviour of the method similar to aop stuff ,
here is what i need
MyClass {
   void myMethod(){

now I want MyCustomAnnotation to log that this method is begin called can I do this ?