Newsletter |
Spring Setter Injection, Dependency In The Form Of Collections
Spring » on Aug 8, 2011 { 15 Comments } By Sivateja
While creating spring bean (pojo class), the bean class can use any of the following 4 types of collections as dependency, along with some primitives and objects like previous sessions..
- Set
- List
- Map
- Properties
Spring supports these 4 collections only as the dependencies.
Except above 4 types of collections, if the spring bean class uses any other type of collection as dependency, then spring container doesn’t inject that collection object to the spring bean, in this case spring programmer is responsible for injection that collection object manually.
Let us see how to use one by one collection property with syntax
You Might Also Like
::. About the Author .:: | ||
Comments
15 Responses to “Spring Setter Injection, Dependency In The Form Of Collections”
Hey, It is really a wonderful site. I have searching for very long time to read about Spring. I got it today. I have many many Thanks for you.
Present am working on Spring mvc techonlogy , there is requirment for placing Captcha in my registration page which is better athuntication for user so how to do that [adding captcha in my Registration Page]. Please kindly help me
Thanks for this tutorial.this helped me a lot.
Good explanation
thank you so much
Good Explaination…….
spring only support these 4 types of collections???
queue and stacks etc does not support???
You are awesome kind of thing,,, 🙂
You have done a wonderful job
Great explanation… More than expected.. Thanks a lot
really usefull and good and clearly explanation in simple manner.
Than You So much
Wonderful tutorial for beginners. Thanks a lot Shiva Teja.
Please maintain Index so that we could approach the concepts easily
Very clearly explained..
Much useful for beginners.
You are doing good job,
Thanks a lot sir!!
Keep it up..
Wonderful site created by great people, much appreciate you hard work.
Very nice explanations… Thanks a lot !!!
can u plz share about the @controller means….and overall work in springmvc in detailed