What is your alternative to annotations?

Posted by kunjaan on Stack Overflow See other posts from Stack Overflow or by kunjaan
Published on 2010-05-08T05:49:13Z Indexed on 2010/05/08 5:58 UTC
Read the original article Hit count: 289

Filed under:
|
|

Let us say Java didn't have annotations. What would be the ideas you would come up with to design something like Google Guice's DI framework? I am fairly new to Java and cannot think of anything other than

  • what Junit3 Had
  • XML Configuration
  • Some kind of introspection?

How would you inspect the elements that needed to be injected? What would be your ideal way of configuration other than annotations?

© Stack Overflow or respective owner

Related posts about guice

Related posts about annotations