This content has been marked as final. Show 1 reply
if you want the annotation to be applied at runtime, you will need to generate some code based on your annotation. the simpler way would be to write some sort of compile time annotation processor which either modifies the code before compilation or modifies the byte code. alternately, you could take the harder approach and do some sort of runtime code manipulation, but that's an order of magnitude more difficult that making the changes at compile time. there are a variety of existing projects out there which can help you do this, but you need to provide a few more details as to what, specifically, you are trying to accomplish.