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 only markers at the source code. They will be used by tools like IDE, compiler or annotation processors.
You can define with @Retention if a annotation should be evaluated in the source, class or runtime.
If you would like define your owned annotations and only you has the knowledge what the annotation should be do, so you should write an annotation processor too. (but this is not simple - maybe)