Resign Patterns Adam Bosworth of BEA moved to Google
Jul 23

Another 1p on annotation overriding

Tech Add comments

There is a lot of chatter on the topic of annotation overloading:

TheServerSide Discussion

Cedric’s: Overriding annotations

Bill’s: XML overrides for EJB3

Gavin’s 2c

I think that:

  • We do need a way to override annotations for deploy time
  • We need to make this ’standard’ and not specific for one spec or set of specs
  • We need it to just work. I want my annotation consumer to also understand the fact that there may be a file called annotations.xml in META-INF or META-INF/package or in each package, or whatever…. that has the overriding elements

I agree with Gavin that “I really wish something like this would have been included in JSR-175″.

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: Type in the word 'cricket'