What is your alternative to annotations?
- by kunjaan
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?