I am just looking to write some annotation which can execute at runtime, before or immediately after a service method is invoked.
I don\'t know if they are executed at r
Annotations are just markers. They don't execute and do anything.
You can specify different retention policies:
More here: http://www.java2s.com/Tutorial/Java/0020__Language/SpecifyingaRetentionPolicy.htm