In picocontainer you have only one option: configure your beans with pure Java code. Thats what I want. Because it is type safe and all major IDE will easily refactor this code later if necessary.
Then, with nanocontainer, it is even possible to write the configuration code in scripting languages.
In Spring you normally hook up your dependencies in an xml file. This is okay as long as you learn this ‘xml’. So, I looked around if there are alternatives to xml.
Here are the results:
- For JavaConfig see the quickstart page
- Dynamic Languages: You can define objects in several scripting languages (beanshell, …) and use those objects in xml.