I am trying to write code that supports two frameworks (Quarkus and Spring Boot). They use similar but different annotation for the same functionalities. I am getting trapped by the fact that annotations do not inherit. What I think would solve my problem is if I could make an annotation process for 1 annotation that converts to or adds the alternate correct annotation.
Super annotation @ConfigurationProperties(prefix="foo")
So I write an annotation process for @ConfigurationProperties in the Quarkus version of my library that changes and or add the @ConfigProperties to the annotated class.
I understand that Lumbok does not do this, I was hoping to borrow some code that could.
I have cloned the project and it is amazingly huge. I found 7 annotation processors, but they appear to process all annotations.
Can you perhaps point me to one specific one that might give me some clue how to alter the annotations attached to a class?