Two Laptop Bag*
The moose likes Spring and the fly likes AutoWiring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "AutoWiring " Watch "AutoWiring " New topic


prasad chowdary

Joined: Feb 18, 2012
Posts: 18

hi experts,

When will we go for autowiring in spring. I have a doubt in a spring bean if we have more no of objects its recomended.

Thanks in advance, Feedback me ASAP.

Piyush Mangal
Ranch Hand

Joined: Jan 22, 2007
Posts: 196
Autowiring helps keep xmls less verbose. Well if you have large number of beans and all of them are singleton , you can use autowiring safely.
prasad chowdary

Joined: Feb 18, 2012
Posts: 18
thanks mangal,
I agree. Here's the link:
subject: AutoWiring
Similar Threads
discussion: why is autowiring bad?
Struts 2 - Spring Integration
spring autowiring by name
Does annotation autowiring violates Java’s encapsulation?