This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes spring autowiring by name 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 "spring autowiring by name" Watch "spring autowiring by name" New topic
Author

spring autowiring by name

anish reddy
Ranch Hand

Joined: Apr 19, 2008
Posts: 74
iam beginner to spring,iam unable to understand spring autowiring by name can any one give example program on it.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Give a bean an id, call it "foo".

Give another bean "bar" a property called "foo". Create a "bar", its "foo" property will be injected with the implementation defined in the "foo" bean.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: spring autowiring by name
 
Similar Threads
spring constructor autowiring
Spring DI Vs Spring Autowiring
Interface injection in Spring
Spring-Autowiiring
Does annotation autowiring violates Java’s encapsulation?