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:
- no
- byName
- byType
- constructor
- autodetect
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 #2
Member
- Join Date
- Mar 2008
- Posts
- 10
- Rep Power
- 0
Autowiring.
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. :)
Similar Threads
-
How to exclude a bean from being available for auto wiring
By Java Tip in forum Java TipReplies: 0Last Post: 03-30-2008, 10:12 AM -
What is weaving in Spring Framework
By Java Tip in forum Java TipReplies: 0Last Post: 03-29-2008, 12:39 PM -
How to run Queries in Spring framework
By JavaBean in forum Java TipReplies: 0Last Post: 09-28-2007, 01:00 PM -
How to exclude a bean from being available for auto wiring
By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:42 PM -
What is auto wiring and it’s advantages in Spring Framework
By JavaBean in forum Java TipReplies: 0Last Post: 09-26-2007, 08:41 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks