File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Frameworks
»
Spring
Author
Constructor injection for Set property
kish kumar
Ranch Hand
Joined: Jan 03, 2008
Posts: 54
posted
Dec 14, 2010 21:38:01
0
Hi
I want to initialize a set in a spring bean using constructor injection. i defined a constructor in the spring bean which takes set as a parameter. Please let me know the syntax for initializing the set.
regards
Kishore
Mark Spritzler
ranger
Sheriff
Joined: Feb 05, 2001
Posts: 17233
1
I like...
posted
Dec 15, 2010 15:54:06
0
<constructor-arg> <set> <ref bean="someBean"/> <ref bean="anotherBean"/> <value>someStringValue/> <set> </constructor-arg
Mark>
Perfect World Programming, LLC
-
Two Laptop Bag
-
Tube Organizer
How to Ask Questions the Smart Way FAQ
kish kumar
Ranch Hand
Joined: Jan 03, 2008
Posts: 54
posted
Dec 20, 2010 23:00:57
0
Mark i really appreciate your answer
I agree. Here's the link:
http://aspose.com/file-tools
subject: Constructor injection for Set property
Similar Threads
Is not autowire a another type of dependendcy injection?
How to set default argument value when using Spring constructor injection
Is this an example of Dependency Injection?
Dependency checking and constructor injection
spring bean class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter