Results 1 to 2 of 2
  1. #1
    Java Tip's Avatar
    Java Tip is offline Moderator
    Join Date
    Nov 2007
    Posts
    1,694
    Blog Entries
    430
    Rep Power
    9

    Default 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.

  2. #2
    peter_lawrey is offline Member
    Join Date
    Mar 2008
    Posts
    10
    Rep Power
    0

    Default 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

  1. Replies: 0
    Last Post: 03-30-2008, 10:12 AM
  2. What is weaving in Spring Framework
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-29-2008, 12:39 PM
  3. How to run Queries in Spring framework
    By JavaBean in forum Java Tip
    Replies: 0
    Last Post: 09-28-2007, 01:00 PM
  4. Replies: 0
    Last Post: 09-26-2007, 08:42 PM
  5. Replies: 0
    Last Post: 09-26-2007, 08:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •