In Java 6, is it possible to inject some value into a (@Target(ElementType.PARAMETER)
and @Retention(RetentionPolicy.RUNTIME)
-meta-annotated) method parameter?
It's entirely possible to find the annotation at runtime using reflection, it's just that there seems to be no way of actually modifying the parameter's value.
Or is that strictly Java 7 (or some yet-to-be-finalized JSR)? I can't see how it would be possible (other than perhaps using bytecode manipulation) in Java 6.