Results 1 to 2 of 2
What is auto wiring and itís advantages in Spring Framework
It is possible to automatic resolve collaborators (other beans) for your bean by inspecting the contents of the BeanFactory. In Spring Framework this can be achieved by auto writing modes.
Five auto writing modes are shown below:
Though this feature significantly reduces the volume of configuration but a lot of care is needed to use this feature.
- 03-30-2008, 09:08 PM #2Member
- Join Date
- Mar 2008
- Rep Power
IMHO The problem with auto writing is that it doesn't scale.
It works best when your configuration is simple anyway. In which case you don't save much. ;)
However as the size and complexity of your project grows and you have multiple developers, possibly over years, it becomes a maintainence nightmare with the result that you cannot safely remove anything because you cannot determine whether something somewhere might auto-reference it. :mad:
So if you have a lots of small projects, autowriting is a real benefit. But if you a large project with lots of developers I suggest you ban it from the start. :)
- By Java Tip in forum Java TipReplies: 0Last Post: 03-30-2008, 10:12 AM
- By Java Tip in forum Java TipReplies: 0Last Post: 03-29-2008, 01:39 PM
- By JavaBean in forum Java TipReplies: 0Last Post: 09-28-2007, 01:00 PM
- By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:42 PM
- By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:41 PM