4 ms·
Do I understand correctly that the writer's main concern is that DI configuration is done in XML files, or that configuration takes place at run-time, instead o
by FreshCode 14y ago
Do I understand correctly that the writer's main concern is that DI configuration is done in XML files, or that configuration takes place at run-time, instead of compile-time?
- pretoriusB 14y agoHis main concern is that you lose static checks by the compiler, you lose clarity in the code, you lose dynamic configuration of objects AND you have to use yet another DLL (and a horrible one at that: XML).
- filpen 14y agoI also don't get what the author's issues are. Half of the article seems to be against XML configuration, and I don't come from a Java background but it seems that there are containers for Java that do not necessarily require an XML configuration, or is it not the case?
- twistedpair 14y agoHmm... guess the author is not familiar with @Autowired, @Resource, @Component... etc. You don't need XML fun. And, he complains about 2 of the same type... behold @Autowired(name="bar"), @Autowired(name="bah"). Miracle? No, just DI.