This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "AutoWiring " Watch "AutoWiring " New topic
Author

AutoWiring

prasad chowdary
Greenhorn

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
Greenhorn

Joined: Feb 18, 2012
Posts: 18
thanks mangal,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: AutoWiring
 
Similar Threads
Does annotation autowiring violates Java’s encapsulation?
discussion: why is autowiring bad?
Spring-Autowiiring
spring autowiring by name
Struts 2 - Spring Integration