Simply put: you can't!
Annotations are not pieces of code that get automatically started together with your code, they are just annotation, pieces of information that can be used by other programs working on your code like loading or running it.
What you need is AOP: aspect oriented programming.