Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-30-2008, 11:11 AM
Moderator
 
Join Date: Nov 2007
Posts: 1,637
Java Tip will become famous soon enoughJava Tip will become famous soon enough
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-30-2008, 10:08 PM
Member
 
Join Date: Mar 2008
Posts: 3
peter_lawrey is on a distinguished road
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.
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to exclude a bean from being available for auto wiring Java Tip Java Tips 0 03-30-2008 11:12 AM
What is weaving in Spring Framework Java Tip Java Tips 0 03-29-2008 01:39 PM
How to run Queries in Spring framework JavaBean Java Tips 0 09-28-2007 02:00 PM
How to exclude a bean from being available for auto wiring JavaBean Java Tips 0 09-26-2007 09:42 PM
What is auto wiring and it’s advantages in Spring Framework JavaBean Java Tips 0 09-26-2007 09:41 PM


All times are GMT +3. The time now is 08:38 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org