Preserve custom annotations present on @Bean methods for interrogation during bean post processing [SPR-5611] #10282
With Spring using more and more annotations, it would be good if the bean definitions allow registering custom annotations for use with Bean/Factory post processors.
Specifically, in JavaConfig one can annotate a method in a configuration class with
The use case is for integrating with spring-dm. Specifically, I would like to annotate a "regular"
NOTE: another approach is to allow me to replace
Affects: 3.0 M2
The text was updated successfully, but these errors were encountered:
Chris Beams commented
It's been quite a while since entering this issue, and we haven't had additional interest since in preserving custom annotations when processing
While not impossible, there are a number of reasons why it would be problematic to do so. I'm resolving this as won't fix for now, however keep in mind that there is a workaround that may meet your needs. Since you were planning to employ a BeanPostProcessor anyway, you could:
If this is still relevant to you, I hope that helps!